|
@@ -74,7 +74,9 @@ def configure(env):
|
|
## Build type
|
|
## Build type
|
|
|
|
|
|
if (env["target"] == "release"):
|
|
if (env["target"] == "release"):
|
|
- env.Prepend(CCFLAGS=['-Ofast'])
|
|
|
|
|
|
+ # -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.
|
|
|
|
+ env.Prepend(CCFLAGS=['-O3', '-ffast-math'])
|
|
if (env["debug_release"] == "yes"):
|
|
if (env["debug_release"] == "yes"):
|
|
env.Prepend(CCFLAGS=['-g2'])
|
|
env.Prepend(CCFLAGS=['-g2'])
|
|
|
|
|