mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[CMAKE] Do not use a flag which clang doesn't know
This commit is contained in:
committed by
Jérôme Gardou
parent
523912536e
commit
aa51bcfbcb
@@ -67,7 +67,9 @@ add_compile_options(/Zc:threadSafeInit-)
|
||||
# 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_options(/d2FH4-)
|
||||
if (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
add_compile_options(/d2FH4-)
|
||||
endif()
|
||||
add_link_options(/d2:-FH4-)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user