mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-03 19:32:35 +00:00
[compiler-rt] Fix MSVC /external
detection in cmake scripts
As suggested by https://reviews.llvm.org/D116872#4650507 Differential Revision: https://reviews.llvm.org/D116872
This commit is contained in:
parent
acb6e855a8
commit
262e2886b8
@ -92,7 +92,7 @@ append_rtti_flag(OFF ASAN_CFLAGS)
|
||||
|
||||
# Silence warnings in system headers with MSVC.
|
||||
if(NOT CLANG_CL)
|
||||
append_list_if(COMPILER_RT_HAS_EXTERNAL_FLAG "/experimental:external /external:W0 /external:anglebrackets" ASAN_CFLAGS)
|
||||
append_list_if(COMPILER_RT_HAS_EXTERNAL_FLAG "/experimental:external;/external:W0;/external:anglebrackets" ASAN_CFLAGS)
|
||||
endif()
|
||||
|
||||
# Too many existing bugs, needs cleanup.
|
||||
|
@ -21,7 +21,7 @@ append_rtti_flag(OFF INTERCEPTION_CFLAGS)
|
||||
|
||||
# Silence warnings in system headers with MSVC.
|
||||
if(NOT CLANG_CL)
|
||||
append_list_if(COMPILER_RT_HAS_EXTERNAL_FLAG "/experimental:external /external:W0 /external:anglebrackets" INTERCEPTION_CFLAGS)
|
||||
append_list_if(COMPILER_RT_HAS_EXTERNAL_FLAG "/experimental:external;/external:W0;/external:anglebrackets" INTERCEPTION_CFLAGS)
|
||||
endif()
|
||||
|
||||
add_compiler_rt_object_libraries(RTInterception
|
||||
|
@ -57,7 +57,7 @@ append_list_if(SANITIZER_CAN_USE_CXXABI -DUBSAN_CAN_USE_CXXABI UBSAN_CXXFLAGS)
|
||||
|
||||
# Silence warnings in system headers with MSVC.
|
||||
if(NOT CLANG_CL)
|
||||
append_list_if(COMPILER_RT_HAS_EXTERNAL_FLAG "/experimental:external /external:W0 /external:anglebrackets" UBSAN_CXXFLAGS)
|
||||
append_list_if(COMPILER_RT_HAS_EXTERNAL_FLAG "/experimental:external;/external:W0;/external:anglebrackets" UBSAN_CXXFLAGS)
|
||||
endif()
|
||||
|
||||
set(UBSAN_LINK_FLAGS ${SANITIZER_COMMON_LINK_FLAGS})
|
||||
|
Loading…
Reference in New Issue
Block a user