[PATCH] D65307: Appending COMPILER_RT_LIBCXX_PATH include path to -isystem for compiler-rt xray
Puyan Lotfi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 25 16:21:37 PDT 2019
plotfi created this revision.
plotfi added reviewers: beanz, compnerd.
Herald added subscribers: Sanitizers, llvm-commits, mgorny, dberris.
Herald added projects: LLVM, Sanitizers.
Haven't found a better way to pass the libcxx include path for building compiler-rt with libcxx.
This seems to only be an issue with xray.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D65307
Files:
lib/xray/CMakeLists.txt
Index: lib/xray/CMakeLists.txt
===================================================================
--- lib/xray/CMakeLists.txt
+++ lib/xray/CMakeLists.txt
@@ -118,6 +118,11 @@
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65307.211852.patch
Type: text/x-patch
Size: 545 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190725/bcaf9d47/attachment.bin>
More information about the llvm-commits
mailing list