You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to see why my build of rustc for iOS was trying to pass -miphoneos-version-min=7.0 to the compiler, even though I specifically set the following flags before compilation:
As one can see, the -miphoneos-version-min=12.0 flag is included in CXXFLAGS_aarch64-apple-ios, but it's immediately discarded by the auto-inserted -miphoneos-version-min=7.0 flag that comes right after it.
It may be better to first check if the IPHONEOS_DEPLOYMENT_TARGET environment variable is set or CFLAGS contains -miphoneos-version-min=<stuff> before switching to default behaviour.
The text was updated successfully, but these errors were encountered:
I was trying to see why my build of
rustc
for iOS was trying to pass-miphoneos-version-min=7.0
to the compiler, even though I specifically set the following flags before compilation:The output of the compilation process is the following:
As one can see, the
-miphoneos-version-min=12.0
flag is included inCXXFLAGS_aarch64-apple-ios
, but it's immediately discarded by the auto-inserted-miphoneos-version-min=7.0
flag that comes right after it.I think it should be possible to have control over that flag because some features, like thread-local storage (which apparently requires iOS 8.0+ or
__IPHONE_OS_VERSION_MIN_REQUIRED > 70100
to be true) are not available with this setting.This setting is hard-coded here:
https://github.com/alexcrichton/cc-rs/blob/caf78d56c7101847304724cca229ad0b14eec26b/src/lib.rs#L1601
It may be better to first check if the
IPHONEOS_DEPLOYMENT_TARGET
environment variable is set orCFLAGS
contains-miphoneos-version-min=<stuff>
before switching to default behaviour.The text was updated successfully, but these errors were encountered: