[macOS / ARM64] Remove "-msse2" flag from ARM64 release export template build.

(cherry picked from commit 09f301029a)
This commit is contained in:
bruvzg 2020-07-24 17:54:34 +03:00 committed by Rémi Verschelde
parent 336506a273
commit bc25b80c0f
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -45,9 +45,11 @@ def configure(env):
if env["target"] == "release":
if env["debug_symbols"] != "full":
if env["optimize"] == "speed": # optimize for speed (default)
env.Prepend(CCFLAGS=["-O3", "-fomit-frame-pointer", "-ftree-vectorize", "-msse2"])
env.Prepend(CCFLAGS=["-O3", "-fomit-frame-pointer", "-ftree-vectorize"])
else: # optimize for size
env.Prepend(CCFLAGS=["-Os", "-ftree-vectorize", "-msse2"])
env.Prepend(CCFLAGS=["-Os", "-ftree-vectorize"])
if env["arch"] != "arm64":
env.Prepend(CCFLAGS=["-msse2"])
if env["debug_symbols"] == "yes":
env.Prepend(CCFLAGS=["-g2"])