Skip to content

Commit e674e73

Browse files
[compiler-rt] Fix build breakage (#96235)
Add missing flags in cmake. Follow-up to cae6d45.
1 parent 255986e commit e674e73

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

compiler-rt/lib/nsan/tests/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,19 @@ include(CompilerRTCompile)
33
set(NSAN_UNITTEST_CFLAGS
44
${COMPILER_RT_UNITTEST_CFLAGS}
55
${COMPILER_RT_GTEST_CFLAGS}
6-
-I${COMPILER_RT_SOURCE_DIR}/lib/
6+
${SANITIZER_TEST_CXX_CFLAGS}
7+
-I${COMPILER_RT_SOURCE_DIR}/include
8+
-I${COMPILER_RT_SOURCE_DIR}/lib
79
-DSANITIZER_COMMON_REDEFINE_BUILTINS_IN_STD
810
-O2
911
-g
1012
-fno-omit-frame-pointer)
1113

14+
set(NSAN_UNITTEST_LINK_FLAGS
15+
${COMPILER_RT_UNITTEST_LINK_FLAGS}
16+
${COMPILER_RT_UNWINDER_LINK_LIBS}
17+
${SANITIZER_TEST_CXX_LIBRARIES})
18+
1219
file(GLOB NSAN_HEADERS ../*.h)
1320
set(NSAN_UNITTESTS
1421
NSanUnitTest.cpp

0 commit comments

Comments
 (0)