[compiler-rt] [CompilerRT] Add numerical sanitizer (PR #94322)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 4 18:31:33 PDT 2024


================
@@ -0,0 +1,54 @@
+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_target_properties(NsanUnitTests PROPERTIES FOLDER "Compiler-RT Tests")
----------------
vitalybuka wrote:

https://github.com/llvm/llvm-project/pull/89753/files

https://github.com/llvm/llvm-project/pull/94322


More information about the llvm-commits mailing list