diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-10-24 13:22:55 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-10-24 13:22:55 -0500 |
commit | 1001a8c6639897e0f64ea7c2a67f71dcba91375c (patch) | |
tree | 402934adcf5d92ae0c80bfb90fb4b162f60f538b /platform | |
parent | d8aa32dccddc69341f24410043e2277aee7ec6eb (diff) | |
parent | c1fd4df3e41bfb6564c33203f506ba9ff6ec8cd9 (diff) | |
download | redot-engine-1001a8c6639897e0f64ea7c2a67f71dcba91375c.tar.gz |
Merge pull request #98380 from RandomShaper/mobile_strict_alias
Android & iOS: Enable strict aliasing
Diffstat (limited to 'platform')
-rw-r--r-- | platform/android/detect.py | 4 | ||||
-rw-r--r-- | platform/ios/detect.py | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/platform/android/detect.py b/platform/android/detect.py index 0a10754e24..233e74364f 100644 --- a/platform/android/detect.py +++ b/platform/android/detect.py @@ -171,9 +171,7 @@ def configure(env: "SConsEnvironment"): env["AS"] = compiler_path + "/clang" env.Append( - CCFLAGS=( - "-fpic -ffunction-sections -funwind-tables -fstack-protector-strong -fvisibility=hidden -fno-strict-aliasing".split() - ) + CCFLAGS=("-fpic -ffunction-sections -funwind-tables -fstack-protector-strong -fvisibility=hidden".split()) ) if get_min_sdk_version(env["ndk_platform"]) >= 24: diff --git a/platform/ios/detect.py b/platform/ios/detect.py index 20a3a996bc..317dbd3f4a 100644 --- a/platform/ios/detect.py +++ b/platform/ios/detect.py @@ -134,7 +134,7 @@ def configure(env: "SConsEnvironment"): elif env["arch"] == "arm64": env.Append( CCFLAGS=( - "-fobjc-arc -arch arm64 -fmessage-length=0 -fno-strict-aliasing" + "-fobjc-arc -arch arm64 -fmessage-length=0" " -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits" " -fpascal-strings -fblocks -fvisibility=hidden -MMD -MT dependencies" " -isysroot $IOS_SDK_PATH".split() |