File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
compiler-rt/test/ubsan_minimal Expand file tree Collapse file tree 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})
1313 string (TOLOWER "-${arch} -${OS_NAME} " UBSAN_TEST_CONFIG_SUFFIX)
1414 get_test_cc_for_arch(${arch} UBSAN_TEST_TARGET_CC UBSAN_TEST_TARGET_CFLAGS)
1515 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 ()
1721 pythonize_bool(UBSAN_TEST_HAS_CFI)
1822 configure_lit_site_cfg(
1923 ${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@"
55# Tool-specific config options.
66config.target_cflags = "@UBSAN_TEST_TARGET_CFLAGS@"
77config.target_arch = "@UBSAN_TEST_TARGET_ARCH@"
8- config.test_cfi = " @UBSAN_TEST_HAS_CFI_PYBOOL@"
8+ config.test_cfi = @UBSAN_TEST_HAS_CFI_PYBOOL@
99
1010# Load common config for all compiler-rt lit tests.
1111lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
You can’t perform that action at this time.
0 commit comments