diff options
| author | Puyan Lotfi <puyan@puyan.org> | 2019-07-29 16:46:35 +0000 |
|---|---|---|
| committer | Puyan Lotfi <puyan@puyan.org> | 2019-07-29 16:46:35 +0000 |
| commit | ba7b7f1de47d9c31997eaf7865aa036da8fe1e9a (patch) | |
| tree | 3605a51ac690c5532b80c6c318df9439c506957b | |
| parent | a8ea595509f33834091fb9e3234a373f83d709a8 (diff) | |
| download | bcm5719-llvm-ba7b7f1de47d9c31997eaf7865aa036da8fe1e9a.tar.gz bcm5719-llvm-ba7b7f1de47d9c31997eaf7865aa036da8fe1e9a.zip | |
Appending COMPILER_RT_LIBCXX_PATH include path to -isystem for compiler-rt xray
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: 367239
| -rw-r--r-- | compiler-rt/lib/xray/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/lib/xray/CMakeLists.txt b/compiler-rt/lib/xray/CMakeLists.txt index 0a86c52e620..002590040a2 100644 --- a/compiler-rt/lib/xray/CMakeLists.txt +++ b/compiler-rt/lib/xray/CMakeLists.txt @@ -118,6 +118,9 @@ endforeach() include_directories(..) include_directories(../../include) +if(COMPILER_RT_USE_LIBCXX) + set(SANITIZER_COMMON_CFLAGS "${SANITIZER_COMMON_CFLAGS} -isystem ${COMPILER_RT_LIBCXX_PATH}/include") +endif() set(XRAY_CFLAGS ${SANITIZER_COMMON_CFLAGS}) set(XRAY_COMMON_DEFINITIONS XRAY_HAS_EXCEPTIONS=1) |

