[compiler-rt] [compiler-rt][nsan] Add `-fno-rtti` to compile flags (PR #98768)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 13 13:09:05 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Dmitriy Chestnykh (chestnykh)
<details>
<summary>Changes</summary>
Other runtime libraries build scripts
like asan, dfsan, msan etc.
use this flag to avoid vtables in the runtime library
Fix #<!-- -->98767
---
Full diff: https://github.com/llvm/llvm-project/pull/98768.diff
1 Files Affected:
- (modified) compiler-rt/lib/nsan/CMakeLists.txt (+2)
``````````diff
diff --git a/compiler-rt/lib/nsan/CMakeLists.txt b/compiler-rt/lib/nsan/CMakeLists.txt
index 1e138d4560c89..ed2fce495a1d9 100644
--- a/compiler-rt/lib/nsan/CMakeLists.txt
+++ b/compiler-rt/lib/nsan/CMakeLists.txt
@@ -28,6 +28,8 @@ append_list_if(COMPILER_RT_HAS_FPIC_FLAG -fPIC NSAN_CFLAGS)
set(NSAN_DYNAMIC_LINK_FLAGS ${SANITIZER_COMMON_LINK_FLAGS})
set(NSAN_CFLAGS ${SANITIZER_COMMON_CFLAGS})
+append_rtti_flag(OFF NSAN_CFLAGS)
+
set(NSAN_DYNAMIC_CFLAGS ${NSAN_CFLAGS})
set(NSAN_COMMON_RUNTIME_OBJECT_LIBS
``````````
</details>
https://github.com/llvm/llvm-project/pull/98768
More information about the llvm-commits
mailing list