Merge pull request #115765 from bruvzg/fp_ios

Disable FP contraction (iOS/visionOS)
This commit is contained in:
Thaddeus Crews 2026-02-02 12:57:31 -06:00
commit 3c5e561024
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
2 changed files with 4 additions and 0 deletions

View file

@ -113,6 +113,8 @@ def configure(env: "SConsEnvironment"):
env.Append(CCFLAGS=["-miphoneos-version-min=14.0"])
detect_darwin_sdk_path(env["APPLE_PLATFORM"], env)
env.Append(CCFLAGS=["-ffp-contract=off"])
if env["arch"] == "x86_64":
if not env["simulator"]:
print_error("Building for iOS with 'arch=x86_64' requires 'simulator=yes'.")

View file

@ -114,6 +114,8 @@ def configure(env: "SConsEnvironment"):
env.Append(CCFLAGS=["-mtargetos=xros26.0"])
detect_darwin_sdk_path(env["APPLE_PLATFORM"], env)
env.Append(CCFLAGS=["-ffp-contract=off"])
if env["arch"] == "arm64":
env.Append(
CCFLAGS=(