mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
CMake: Fix Windows exceptions flag
This commit changes the exception flag to match the description and turn off exceptions. This matches the behavior of -fno-exceptions. However, on Windows SEH exceptions are always available, and there's no easy way to turn them off. This flag should also suppress previous /EHsc flags, if they get automatically set by cmake. Reference: https://learn.microsoft.com/en-us/cpp/build/reference/eh-exception-handling-model?view=msvc-170
This commit is contained in:
parent
bc77f84359
commit
2ac8408fef
Notes:
github-actions[bot]
2024-12-05 19:35:08 +00:00
Author: https://github.com/R-Goc 🔰
Commit: 2ac8408fef
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2780
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ endif()
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
add_cxx_compile_options(/W4)
|
add_cxx_compile_options(/W4)
|
||||||
# disable exceptions
|
# disable exceptions
|
||||||
add_cxx_compile_options(/EHsc)
|
add_cxx_compile_options(/EHs-)
|
||||||
# disable floating-point expression contraction
|
# disable floating-point expression contraction
|
||||||
add_cxx_compile_options(/fp:precise)
|
add_cxx_compile_options(/fp:precise)
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue