[compiler-rt] [CompilerRT] Add numerical sanitizer (PR #94322)
Jessica Paquette via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 00:57:37 PDT 2024
================
@@ -0,0 +1,53 @@
+include(CompilerRTCompile)
+
+set(NSAN_UNITTEST_CFLAGS
+ ${COMPILER_RT_UNITTEST_CFLAGS}
+ ${COMPILER_RT_GTEST_CFLAGS}
+ -I${COMPILER_RT_SOURCE_DIR}/lib/
+ -DSANITIZER_COMMON_REDEFINE_BUILTINS_IN_STD
+ -O2
+ -g
+ -fno-omit-frame-pointer)
+
+file(GLOB NSAN_HEADERS ../*.h)
+set(NSAN_UNITTESTS
+ NSanUnitTest.cpp
+ nsan_unit_test_main.cpp)
+
+add_custom_target(NsanUnitTests)
+
+# set(NSAN_UNITTEST_LINK_FLAGS ${COMPILER_RT_UNITTEST_LINK_FLAGS} -ldl)
----------------
ornata wrote:
Should these lines be commented out?
https://github.com/llvm/llvm-project/pull/94322
More information about the llvm-commits
mailing list