mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Merge pull request #98380 from RandomShaper/mobile_strict_alias
Android & iOS: Enable strict aliasing
This commit is contained in:
commit
1001a8c663
@ -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:
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user