diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-23 15:55:50 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-23 15:55:50 +0200 |
commit | 9b7f5f5fa58df2a33e42b6c466e9231da9427bef (patch) | |
tree | 3ab42e1ed7ed5d29e7f3bb9d35d93ab7208bd7de /platform/windows/detect.py | |
parent | 29e1bdee2b48247d858f6985fc4e8f2c509de037 (diff) | |
parent | 52a2836861a4e544ce58908c50e457b18656239e (diff) | |
download | redot-engine-9b7f5f5fa58df2a33e42b6c466e9231da9427bef.tar.gz |
Merge pull request #94655 from bruvzg/ffp-contract-2
Disable FP contraction.
Diffstat (limited to 'platform/windows/detect.py')
-rw-r--r-- | platform/windows/detect.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py index 3671bbef08..bfbf7d3ebc 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -467,6 +467,8 @@ def configure_msvc(env: "SConsEnvironment", vcvars_msvc_config): if env["arch"] == "x86_32": env["x86_libtheora_opt_vc"] = True + env.Append(CCFLAGS=["/fp:strict"]) + env.AppendUnique(CCFLAGS=["/Gd", "/GR", "/nologo"]) env.AppendUnique(CCFLAGS=["/utf-8"]) # Force to use Unicode encoding. env.AppendUnique(CXXFLAGS=["/TP"]) # assume all sources are C++ @@ -675,6 +677,8 @@ def configure_mingw(env: "SConsEnvironment"): if env["arch"] in ["x86_32", "x86_64"]: env["x86_libtheora_opt_gcc"] = True + env.Append(CCFLAGS=["-ffp-contract=off"]) + mingw_bin_prefix = get_mingw_bin_prefix(env["mingw_prefix"], env["arch"]) if env["use_llvm"]: |