mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[CMAKE] Disable EH4 for x64 and VS versions 16.3+
This fixes x64 build with latest VS 2019 See https://developercommunity.visualstudio.com/content/problem/746534/visual-c-163-runtime-uses-an-unsupported-api-for-u.html
This commit is contained in:
parent
55251a0a8e
commit
70bcd0fc6b
1 changed files with 7 additions and 0 deletions
|
@ -64,6 +64,13 @@ if(MSVC_VERSION GREATER 1899)
|
|||
add_compile_flags("/Zc:threadSafeInit-")
|
||||
endif ()
|
||||
|
||||
# HACK: Disable use of __CxxFrameHandler4 on VS 16.3+ (x64 only)
|
||||
# See https://developercommunity.visualstudio.com/content/problem/746534/visual-c-163-runtime-uses-an-unsupported-api-for-u.html
|
||||
if(ARCH STREQUAL "amd64" AND MSVC_VERSION GREATER 1922)
|
||||
add_compile_flags("/d2FH4-")
|
||||
add_link_options("/d2:-FH4-")
|
||||
endif ()
|
||||
|
||||
# Generate Warnings Level 3
|
||||
add_compile_flags("/W3")
|
||||
|
||||
|
|
Loading…
Reference in a new issue