diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-09-23 15:21:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-23 15:21:19 +0200 |
commit | 56e847ef653ce2b818b9f2095452b6c0c0c44d54 (patch) | |
tree | 81048740b043f28a55aeba6c03e355adde098145 | |
parent | 006e345695a0448acefd63dcb726a07b63cb1d0d (diff) | |
parent | c5c3d13dc0dbbf95a2350f57d69e7cdc546d395d (diff) |
Merge pull request #66297 from akien-mga/scons-remove-fomit-frame-pointer-ftree-vectorize
-rw-r--r-- | platform/android/detect.py | 3 | ||||
-rw-r--r-- | platform/ios/detect.py | 4 | ||||
-rw-r--r-- | platform/macos/detect.py | 4 |
3 files changed, 5 insertions, 6 deletions
diff --git a/platform/android/detect.py b/platform/android/detect.py index a31bba745f..f36e7e2a7f 100644 --- a/platform/android/detect.py +++ b/platform/android/detect.py @@ -121,11 +121,10 @@ def configure(env): # `-O2` is more friendly to debuggers than `-O3`, leading to better crash backtraces # when using `target=release_debug`. opt = "-O3" if env["target"] == "release" else "-O2" - env.Append(CCFLAGS=[opt, "-fomit-frame-pointer"]) + env.Append(CCFLAGS=[opt]) elif env["optimize"] == "size": # optimize for size env.Append(CCFLAGS=["-Oz"]) env.Append(CPPDEFINES=["NDEBUG"]) - env.Append(CCFLAGS=["-ftree-vectorize"]) elif env["target"] == "debug": env.Append(LINKFLAGS=["-O0"]) env.Append(CCFLAGS=["-O0", "-g", "-fno-limit-debug-info"]) diff --git a/platform/ios/detect.py b/platform/ios/detect.py index d5e6ee4b46..cb863e266d 100644 --- a/platform/ios/detect.py +++ b/platform/ios/detect.py @@ -60,10 +60,10 @@ def configure(env): # `-O2` is more friendly to debuggers than `-O3`, leading to better crash backtraces # when using `target=release_debug`. opt = "-O3" if env["target"] == "release" else "-O2" - env.Append(CCFLAGS=[opt, "-ftree-vectorize", "-fomit-frame-pointer"]) + env.Append(CCFLAGS=[opt]) env.Append(LINKFLAGS=[opt]) elif env["optimize"] == "size": # optimize for size - env.Append(CCFLAGS=["-Os", "-ftree-vectorize"]) + env.Append(CCFLAGS=["-Os"]) env.Append(LINKFLAGS=["-Os"]) elif env["target"] == "debug": diff --git a/platform/macos/detect.py b/platform/macos/detect.py index 834ac935d8..58d9c0e99f 100644 --- a/platform/macos/detect.py +++ b/platform/macos/detect.py @@ -88,9 +88,9 @@ def configure(env): if env["target"] == "release": if env["optimize"] == "speed": # optimize for speed (default) - env.Prepend(CCFLAGS=["-O3", "-fomit-frame-pointer", "-ftree-vectorize"]) + env.Prepend(CCFLAGS=["-O3"]) elif env["optimize"] == "size": # optimize for size - env.Prepend(CCFLAGS=["-Os", "-ftree-vectorize"]) + env.Prepend(CCFLAGS=["-Os"]) if env["arch"] != "arm64": env.Prepend(CCFLAGS=["-msse2"]) |