[compiler-rt] r367250 - [compiler-rt] Appending COMPILER_RT_LIBCXX_PATH -isystem include for xray (2)
Puyan Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 29 12:21:59 PDT 2019
Author: zer0
Date: Mon Jul 29 12:21:58 2019
New Revision: 367250
URL: http://llvm.org/viewvc/llvm-project?rev=367250&view=rev
Log:
[compiler-rt] Appending COMPILER_RT_LIBCXX_PATH -isystem include for xray (2)
Second attempt.
Haven't found a better way to pass the libcxx include path for building
compiler-rt with libcxx; this seems to be missing only for xray.
Differential Revision: https://reviews.llvm.org/D65307
Modified:
compiler-rt/trunk/lib/xray/CMakeLists.txt
Modified: compiler-rt/trunk/lib/xray/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/xray/CMakeLists.txt?rev=367250&r1=367249&r2=367250&view=diff
==============================================================================
--- compiler-rt/trunk/lib/xray/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/xray/CMakeLists.txt Mon Jul 29 12:21:58 2019
@@ -118,6 +118,11 @@ endforeach()
include_directories(..)
include_directories(../../include)
+if(COMPILER_RT_USE_LIBCXX)
+ if (SANITIZER_CXX_ABI_LIBNAME STREQUAL "libc++")
+ set(SANITIZER_COMMON_CFLAGS "${SANITIZER_COMMON_CFLAGS} -isystem ${COMPILER_RT_LIBCXX_PATH}/include")
+ endif()
+endif()
set(XRAY_CFLAGS ${SANITIZER_COMMON_CFLAGS})
set(XRAY_COMMON_DEFINITIONS XRAY_HAS_EXCEPTIONS=1)
More information about the llvm-commits
mailing list