File tree 2 files changed +6
-2
lines changed
compiler-rt/test/ubsan_minimal
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ foreach(arch ${UBSAN_TEST_ARCH})
13
13
string (TOLOWER "-${arch} -${OS_NAME} " UBSAN_TEST_CONFIG_SUFFIX)
14
14
get_test_cc_for_arch(${arch} UBSAN_TEST_TARGET_CC UBSAN_TEST_TARGET_CFLAGS)
15
15
set (CONFIG_NAME ${arch} )
16
- set (UBSAN_TEST_HAS_CFI ${arch} IN_LIST CFI_SUPPORTED_ARCH)
16
+ if (${arch} IN_LIST CFI_SUPPORTED_ARCH)
17
+ set (UBSAN_TEST_HAS_CFI TRUE )
18
+ else ()
19
+ set (UBSAN_TEST_HAS_CFI FALSE )
20
+ endif ()
17
21
pythonize_bool(UBSAN_TEST_HAS_CFI)
18
22
configure_lit_site_cfg(
19
23
${CMAKE_CURRENT_SOURCE_DIR} /lit.site.cfg.py.in
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ config.name_suffix = "@UBSAN_TEST_CONFIG_SUFFIX@"
5
5
# Tool-specific config options.
6
6
config.target_cflags = "@UBSAN_TEST_TARGET_CFLAGS@"
7
7
config.target_arch = "@UBSAN_TEST_TARGET_ARCH@"
8
- config.test_cfi = " @UBSAN_TEST_HAS_CFI_PYBOOL@"
8
+ config.test_cfi = @UBSAN_TEST_HAS_CFI_PYBOOL@
9
9
10
10
# Load common config for all compiler-rt lit tests.
11
11
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
You can’t perform that action at this time.
0 commit comments