diff --git a/platform/ios/detect.py b/platform/ios/detect.py index 16c9f5ac9ef..3a2b5ae9744 100644 --- a/platform/ios/detect.py +++ b/platform/ios/detect.py @@ -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'.") diff --git a/platform/visionos/detect.py b/platform/visionos/detect.py index dc0a7de9cea..8a79a2a264c 100644 --- a/platform/visionos/detect.py +++ b/platform/visionos/detect.py @@ -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=(