From abdc01b9f7cea5951156155ff71b6603c0dcc917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=CC=84vels=20Nadtoc=CC=8Cajevs?= <7645683+bruvzg@users.noreply.github.com> Date: Mon, 2 Feb 2026 19:06:29 +0200 Subject: [PATCH] Disable FP contraction (iOS/visionOS) --- platform/ios/detect.py | 2 ++ platform/visionos/detect.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/platform/ios/detect.py b/platform/ios/detect.py index 16c9f5ac9e..3a2b5ae974 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 dc0a7de9ce..8a79a2a264 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=(