diff --git a/Meta/CMake/common_compile_options.cmake b/Meta/CMake/common_compile_options.cmake index 9c4dd2bd1dc..684a3ad0027 100644 --- a/Meta/CMake/common_compile_options.cmake +++ b/Meta/CMake/common_compile_options.cmake @@ -12,6 +12,8 @@ add_compile_options(-Wno-unused-command-line-argument) add_compile_options(-fdiagnostics-color=always) add_compile_options(-fno-exceptions) +add_compile_options(-ffp-contract=off) + if (NOT CMAKE_HOST_SYSTEM_NAME MATCHES SerenityOS) # FIXME: Something makes this go crazy and flag unused variables that aren't flagged as such when building with the toolchain. # Disable -Werror for now. diff --git a/Meta/gn/build/BUILD.gn b/Meta/gn/build/BUILD.gn index 32a66007437..b0a4f3c2cf2 100644 --- a/Meta/gn/build/BUILD.gn +++ b/Meta/gn/build/BUILD.gn @@ -84,6 +84,8 @@ config("compiler_defaults") { } cflags += [ "-fdiagnostics-color" ] + cflags += [ "-ffp-contract=off" ] + if (use_lld) { ldflags += [ "-Wl,--color-diagnostics" ] }