summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Phillips <mitchphillips@outlook.com>2019-07-02 22:36:45 +0000
committerMitch Phillips <mitchphillips@outlook.com>2019-07-02 22:36:45 +0000
commit3ccbf229e8c9c786074b710a156c277256820f4c (patch)
treeea1571fbecf274b55b52f5165b0f4336d9c93575
parentbfe11bb3c6f6850727ae29cbf8731d50cb826bd6 (diff)
downloadcompiler-rt-3ccbf229e8c9c786074b710a156c277256820f4c.tar.gz
Attempt #2 to fix gcc builds. This time check
against CXX compiler ID instead of CRT test ID. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@364975 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/scudo/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scudo/CMakeLists.txt b/lib/scudo/CMakeLists.txt
index 74bbaff9b..9ee615c78 100644
--- a/lib/scudo/CMakeLists.txt
+++ b/lib/scudo/CMakeLists.txt
@@ -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()