diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2019-01-09 10:49:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-09 10:49:41 +0100 |
| commit | 08fe57dcee5d82f812e346d459a509c0153f2c96 (patch) | |
| tree | b08fd5e62c9765f99cddd375c9e7a66f3b6bf17b /platform/x11/detect.py | |
| parent | e46f28e02dde08bb515fdd796ffcf114361e4877 (diff) | |
| parent | e5b335d367103f4052fc5fd435a54ad635ec447c (diff) | |
Merge pull request #24855 from hpvb/disable-ffast-math
Don't use -ffast-math or other unsafe math optimizations
Diffstat (limited to 'platform/x11/detect.py')
| -rw-r--r-- | platform/x11/detect.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py index 9b6fb2f478..415e8ceaa6 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -86,10 +86,8 @@ def configure(env): ## Build type if (env["target"] == "release"): - # -O3 -ffast-math is identical to -Ofast. We need to split it out so we can selectively disable - # -ffast-math in code for which it generates wrong results. if (env["optimize"] == "speed"): #optimize for speed (default) - env.Prepend(CCFLAGS=['-O3', '-ffast-math']) + env.Prepend(CCFLAGS=['-O3']) else: #optimize for size env.Prepend(CCFLAGS=['-Os']) @@ -100,7 +98,7 @@ def configure(env): elif (env["target"] == "release_debug"): if (env["optimize"] == "speed"): #optimize for speed (default) - env.Prepend(CCFLAGS=['-O2', '-ffast-math', '-DDEBUG_ENABLED']) + env.Prepend(CCFLAGS=['-O2', '-DDEBUG_ENABLED']) else: #optimize for size env.Prepend(CCFLAGS=['-Os', '-DDEBUG_ENABLED']) |