Skip to content

Commit 6884c1f

Browse files
authored
[test][GWP-ASan] Only add check-gwp_asan when its dependencies are built (#89164)
Currently, `check-gwp_asan` is added no matter its dependencies are built or not, this is wrong and will cause cmake error when scudo is not built. This patch includes the target in the dependencies check.
1 parent ce1b678 commit 6884c1f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compiler-rt/test/gwp_asan/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ if (COMPILER_RT_INCLUDE_TESTS AND COMPILER_RT_HAS_SCUDO_STANDALONE AND COMPILER_
3535
${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg.py)
3636
list(APPEND GWP_ASAN_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME})
3737
endforeach()
38-
endif()
3938

40-
add_lit_testsuite(check-gwp_asan "Running the GWP-ASan tests"
41-
${GWP_ASAN_TESTSUITES}
42-
DEPENDS ${GWP_ASAN_TEST_DEPS})
43-
set_target_properties(check-gwp_asan PROPERTIES FOLDER "Compiler-RT Misc")
39+
add_lit_testsuite(check-gwp_asan "Running the GWP-ASan tests"
40+
${GWP_ASAN_TESTSUITES}
41+
DEPENDS ${GWP_ASAN_TEST_DEPS})
42+
set_target_properties(check-gwp_asan PROPERTIES FOLDER "Compiler-RT Misc")
43+
endif()

0 commit comments

Comments
 (0)