Skip to content

Commit aa141b6

Browse files
committed
Attempt rust-lang#2 to fix gcc builds. This time check
against CXX compiler ID instead of CRT test ID. llvm-svn: 364975
1 parent 89b6584 commit aa141b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/scudo/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ append_list_if(COMPILER_RT_HAS_LIBPTHREAD pthread SCUDO_MINIMAL_DYNAMIC_LIBS)
1414
append_list_if(COMPILER_RT_HAS_LIBLOG log SCUDO_MINIMAL_DYNAMIC_LIBS)
1515
append_list_if(COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG -fno-omit-frame-pointer
1616
SCUDO_CFLAGS)
17-
if (COMPILER_RT_TEST_COMPILER_ID STREQUAL "Clang")
17+
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
1818
append_list_if(COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG
1919
-mno-omit-leaf-frame-pointer SCUDO_CFLAGS)
2020
endif()

0 commit comments

Comments
 (0)