X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/15de9d6b4ab2de27ae24b13b7b6c4d55fffe4aef..974e388456677d82eb6d10d4fd72390641a5bdfe:/xcodescripts/generate_features.pl diff --git a/xcodescripts/generate_features.pl b/xcodescripts/generate_features.pl index ac54795..e2d689f 100755 --- a/xcodescripts/generate_features.pl +++ b/xcodescripts/generate_features.pl @@ -19,8 +19,14 @@ for my $arch (split(/ /, $ENV{"ARCHS"})) { # set ENV{"CURRENT_ARCH"} so we can predicate on it $ENV{"CURRENT_ARCH"} = $arch; - + + # BridgeOS shares the same platform name than the watch so + # we need to fix it and pick the right configuration. my $platformName = $ENV{"PLATFORM_NAME"}; + if ($ENV{"RC_BRIDGE"} eq "YES") { + $platformName = "bridgeos"; + } + $platformName =~ s/simulator/os/; my $platformPath = $ENV{"SRCROOT"} . "/Platforms/" . $platformName . "/Makefile.inc"; @@ -122,6 +128,7 @@ for my $arch (split(/ /, $ENV{"ARCHS"})) my $shortarch = $arch; $shortarch =~ s/armv\d+[a-z]?/arm/g; + $shortarch =~ s/arm64_32/arm64/g; printf HEADER "#if !defined(__".$shortarch."__)\n"; printf HEADER "#error Mismatched libc-features.h architecture\n";