Skip to content

Commit 046add4

Browse files
author
Omar Awile
authored
Add support for non-AppleClang LLVMs on mac (#146)
1 parent b62babd commit 046add4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/cmake/sanitizers.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set(${CODING_CONV_PREFIX}_SANITIZERS_UNDEFINED_EXCLUSIONS
1717
function(cpp_cc_find_sanitizer_runtime)
1818
cmake_parse_arguments("" "" "NAME;OUTPUT" "" ${ARGN})
1919
set(name_template ${CMAKE_SHARED_LIBRARY_PREFIX}clang_rt.)
20-
if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
20+
if(APPLE AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
2121
string(APPEND name_template ${_NAME}_osx_dynamic)
2222
else()
2323
string(APPEND name_template ${_NAME}-${CMAKE_SYSTEM_PROCESSOR})

0 commit comments

Comments
 (0)