https://git.reactos.org/?p=reactos.git;a=commitdiff;h=aa51bcfbcb0f9ff308b43d5252d15ed5deca8774

commit aa51bcfbcb0f9ff308b43d5252d15ed5deca8774
Author:     Jérôme Gardou <[email protected]>
AuthorDate: Fri Apr 30 14:15:39 2021 +0200
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Mon May 3 22:00:57 2021 +0200

    [CMAKE] Do not use a flag which clang doesn't know
---
 sdk/cmake/msvc.cmake | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sdk/cmake/msvc.cmake b/sdk/cmake/msvc.cmake
index aad75ebcc4d..b647f839d85 100644
--- a/sdk/cmake/msvc.cmake
+++ b/sdk/cmake/msvc.cmake
@@ -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()
 

Reply via email to