[compiler-rt] r333867 - [XRay][compiler-rt] Remove RTTI requirement from XRay Builds
Dean Michael Berris via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 3 21:22:26 PDT 2018
Author: dberris
Date: Sun Jun 3 21:22:26 2018
New Revision: 333867
URL: http://llvm.org/viewvc/llvm-project?rev=333867&view=rev
Log:
[XRay][compiler-rt] Remove RTTI requirement from XRay Builds
XRay doesn't use RTTI and doesn't need it. We disable it explicitly in
the CMake config, similar to how the other sanitizers already do it.
Part of the work to address http://llvm.org/PR32274.
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=333867&r1=333866&r2=333867&view=diff
==============================================================================
--- compiler-rt/trunk/lib/xray/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/xray/CMakeLists.txt Sun Jun 3 21:22:26 2018
@@ -65,6 +65,10 @@ include_directories(../../include)
set(XRAY_CFLAGS ${SANITIZER_COMMON_CFLAGS})
set(XRAY_COMMON_DEFINITIONS XRAY_HAS_EXCEPTIONS=1)
+
+# We don't need RTTI in XRay, so turn that off.
+append_rtti_flag(OFF XRAY_CFLAGS)
+
append_list_if(
COMPILER_RT_HAS_XRAY_COMPILER_FLAG XRAY_SUPPORTED=1 XRAY_COMMON_DEFINITIONS)
append_list_if(
More information about the llvm-commits
mailing list