Skip to content

Commit

Permalink
Attempt #2 to fix gcc builds. This time check
Browse files Browse the repository at this point in the history
against CXX compiler ID instead of CRT test ID.

llvm-svn: 364975
  • Loading branch information
hctim committed Jul 2, 2019
1 parent 89b6584 commit aa141b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/scudo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ append_list_if(COMPILER_RT_HAS_LIBPTHREAD pthread SCUDO_MINIMAL_DYNAMIC_LIBS)
append_list_if(COMPILER_RT_HAS_LIBLOG log SCUDO_MINIMAL_DYNAMIC_LIBS)
append_list_if(COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG -fno-omit-frame-pointer
SCUDO_CFLAGS)
if (COMPILER_RT_TEST_COMPILER_ID STREQUAL "Clang")
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
append_list_if(COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG
-mno-omit-leaf-frame-pointer SCUDO_CFLAGS)
endif()
Expand Down

0 comments on commit aa141b6

Please sign in to comment.