Loading...
--- Libc/Libc-1158.50.2/xcodescripts/generate_features.pl
+++ Libc/Libc-997.90.3/xcodescripts/generate_features.pl
@@ -1,4 +1,8 @@
#!/usr/bin/perl
+
+if ($ENV{"ACTION"} eq "installhdrs") {
+ exit 0;
+}
# Generates the libc-features.h files used to control #ifdef behaviour in Libc
use warnings;
@@ -19,15 +23,9 @@
{
# 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/;
+ $platformName = "iphoneos" if ($platformName eq "iphonesimulator");
my $platformPath = $ENV{"SRCROOT"} . "/Platforms/" . $platformName . "/Makefile.inc";
my $featuresHeaderDir = $ENV{"DERIVED_FILES_DIR"}."/".$arch;
@@ -128,7 +126,6 @@
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";
@@ -230,12 +227,6 @@
printf HEADER "/* #undef XPRINTF_PERF */\n";
}
- if (defined($features{"FEATURE_SIGNAL_RESTRICTION"})) {
- printf HEADER "#define FEATURE_SIGNAL_RESTRICTION 1\n";
- } else {
- printf HEADER "/* #undef FEATURE_SIGNAL_RESTRICTION */\n";
- }
-
printf HEADER "#endif // _LIBC_FEATURES_H_\n";
close HEADER;
}