diff options
author | Puyan Lotfi <puyan@puyan.org> | 2019-07-29 19:21:58 +0000 |
---|---|---|
committer | Puyan Lotfi <puyan@puyan.org> | 2019-07-29 19:21:58 +0000 |
commit | a9c59b28738e554c10139524143586f64e6f72ea (patch) | |
tree | 125e340019bca395be33b1f2a23410bb3b870294 /compiler-rt/lib/xray | |
parent | 2336c1b872a659ebb7e3c15c73dd0592cd751d57 (diff) | |
download | bcm5719-llvm-a9c59b28738e554c10139524143586f64e6f72ea.tar.gz bcm5719-llvm-a9c59b28738e554c10139524143586f64e6f72ea.zip |
[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
llvm-svn: 367250
Diffstat (limited to 'compiler-rt/lib/xray')
-rw-r--r-- | compiler-rt/lib/xray/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/xray/CMakeLists.txt b/compiler-rt/lib/xray/CMakeLists.txt index 0a86c52e620..d436a32e075 100644 --- a/compiler-rt/lib/xray/CMakeLists.txt +++ b/compiler-rt/lib/xray/CMakeLists.txt @@ -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) |