From c59600b7902d4fc2c873ce5d0d53604cc9ddcf11 Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Sat, 30 Nov 2024 11:26:40 +0300 Subject: [PATCH] Add x suffix for macos triplet to make it proper 'macosx'. --- src/sw/driver/build_settings.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sw/driver/build_settings.cpp b/src/sw/driver/build_settings.cpp index 970e3400..ce126eec 100644 --- a/src/sw/driver/build_settings.cpp +++ b/src/sw/driver/build_settings.cpp @@ -145,6 +145,10 @@ String BuildSettings::getTargetTriplet() const else { target += "-" + toTripletString(TargetOS.Type); + if (TargetOS.Type == OSType::Macos) { + target += "x"; // macos is actually macosx in the triplet + // or use darwin with version + } if (TargetOS.isApple() && TargetOS.Version) target += TargetOS.Version->toString(TargetOS.Version->getRealLevel()); if (TargetOS.Type == OSType::Android)