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

Alexander Shaposhnikov via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 8 22:33:52 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")
----------------
alexander-shaposhnikov wrote:

Done

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


More information about the llvm-commits mailing list