Skip to content

Commit

Permalink
Add x suffix for macos triplet to make it proper 'macosx'.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Nov 30, 2024
1 parent 8caf5cf commit c59600b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sw/driver/build_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c59600b

Please sign in to comment.