force /fp:precise on windows

This commit is contained in:
Laurent Perron
2023-01-02 19:16:30 +01:00
parent 95a73da757
commit 20dc9fe215
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ config_setting(
SAFE_FP_CODE = select({
"on_linux": ["-fno-fast-math"],
"on_macos": [], # no_fast_math is the default.
"on_windows": [], # /fp:precise is the default.
"on_windows": ["/fp:precise"],
"//conditions:default": [],
})

View File

@@ -40,7 +40,7 @@ config_setting(
SAFE_FP_CODE = select({
"on_linux": ["-fno-fast-math"],
"on_macos": [], # no_fast_math is the default.
"on_windows": [], # /fp:precise is the default.
"on_windows": ["/fp:precise"],
"//conditions:default": [],
})