File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ foreach(arch ${LSAN_TEST_ARCH})
21
21
list (APPEND LSAN_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR} /${CONFIG_NAME} )
22
22
23
23
list (FIND ASAN_SUPPORTED_ARCH ${arch} _found )
24
- if (NOT _found EQUAL -1 )
24
+ if (NOT _found EQUAL -1 AND COMPILER_RT_HAS_ASAN )
25
25
set (CONFIG_NAME ${ARCH_UPPER_CASE} AsanConfig )
26
26
set (LSAN_LIT_TEST_MODE "AddressSanitizer" )
27
27
configure_lit_site_cfg (
@@ -31,7 +31,7 @@ foreach(arch ${LSAN_TEST_ARCH})
31
31
endif ()
32
32
33
33
list (FIND HWASAN_SUPPORTED_ARCH ${arch} _found )
34
- if (NOT _found EQUAL -1 )
34
+ if (NOT _found EQUAL -1 AND COMPILER_RT_HAS_HWASAN )
35
35
set (CONFIG_NAME ${ARCH_UPPER_CASE} HWAsanConfig )
36
36
set (LSAN_LIT_TEST_MODE "HWAddressSanitizer" )
37
37
configure_lit_site_cfg (
You can’t perform that action at this time.
0 commit comments