[compiler-rt] Appending COMPILER_RT_LIBCXX_PATH -isystem include for xray (3)
Third landing attempt: Added "if (HAVE_LIBCXX)" to keep Green Dragon green.
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.
@@ -132,6 +132,13 @@ endforeach()
include_directories(..)
include_directories(../../include)
+if(COMPILER_RT_USE_LIBCXX)
+ if (SANITIZER_CXX_ABI_LIBNAME STREQUAL "libc++")
+ if (HAVE_LIBCXX)
+ set(SANITIZER_COMMON_CFLAGS "${SANITIZER_COMMON_CFLAGS} -isystem ${COMPILER_RT_LIBCXX_PATH}/include")
+ endif()
+ endif()
+endif()
set(XRAY_CFLAGS ${SANITIZER_COMMON_CFLAGS})
set(XRAY_COMMON_DEFINITIONS XRAY_HAS_EXCEPTIONS=1)
