Disable FP contraction (iOS/visionOS)

This commit is contained in:
Pāvels Nadtočajevs
2026-02-02 19:06:29 +02:00
parent f4f0679a2d
commit abdc01b9f7
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=(