diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2020-07-24 17:54:34 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2020-07-24 17:54:34 +0300 |
commit | 09f301029a3d28a774b1f4a5cf4c1ed6daaeb2bd (patch) | |
tree | 0cfacb43589db10c17e38eec172a281e139cb253 /platform | |
parent | 5287124b720c860e36d2908283013d0e0e69b577 (diff) |
[macOS / ARM64] Remove "-msse2" flag from ARM64 release export template build. Add ARM64 breakpoint inline assembly to "doctest".
Diffstat (limited to 'platform')
-rw-r--r-- | platform/osx/detect.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py index 25d230fc89..d700bcd7f6 100644 --- a/platform/osx/detect.py +++ b/platform/osx/detect.py @@ -50,9 +50,11 @@ def configure(env): if env["target"] == "release": 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=["-g1"]) |