|
1 | 1 | set(BUILTINS_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) |
2 | 2 |
|
3 | | -# If COMPILER_RT_TEST_BUILTINS_DIR is set, the builtins |
| 3 | +# If COMPILER_RT_FORCE_TEST_BUILTINS_DIR is set, the builtins |
4 | 4 | # were already built and we are just going to test them. |
5 | 5 | # NOTE: This is currently an LLVM-internal option which should |
6 | 6 | # only be used by the LLVM_ENABLE_RUNTIMES build configured |
7 | 7 | # in llvm/runtimes/CMakeLists.txt |
8 | | -if(COMPILER_RT_TEST_BUILTINS_DIR) |
| 8 | +if(COMPILER_RT_FORCE_TEST_BUILTINS_DIR) |
9 | 9 | set(BUILTINS_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS}) |
10 | 10 | else() |
11 | 11 | set(BUILTINS_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS} builtins) |
@@ -96,16 +96,16 @@ foreach(arch ${BUILTIN_TEST_ARCH}) |
96 | 96 | endif() |
97 | 97 | # Normally, we can just inspect the target directly to get the sources, but if |
98 | 98 | # we are testing an externally-built builtins library, we expect |
99 | | - # COMPILER_RT_TEST_BUILTINS_DIR to be set and contain a file named |
| 99 | + # COMPILER_RT_FORCE_TEST_BUILTINS_DIR to be set and contain a file named |
100 | 100 | # ${BUILTIN_LIB_TARGET_NAME}.sources.txt from the builtins build. This file |
101 | 101 | # is created by compiler-rt/lib/builtins/CMakeLists.txt |
102 | | - if(NOT COMPILER_RT_TEST_BUILTINS_DIR) |
| 102 | + if(NOT COMPILER_RT_FORCE_TEST_BUILTINS_DIR) |
103 | 103 | if (NOT TARGET "${BUILTIN_LIB_TARGET_NAME}") |
104 | 104 | message(FATAL_ERROR "Target ${BUILTIN_LIB_TARGET_NAME} does not exist") |
105 | 105 | endif() |
106 | 106 | get_target_property(BUILTIN_LIB_SOURCES "${BUILTIN_LIB_TARGET_NAME}" SOURCES) |
107 | 107 | else() |
108 | | - file(READ "${COMPILER_RT_TEST_BUILTINS_DIR}/${BUILTIN_LIB_TARGET_NAME}.sources.txt" BUILTIN_LIB_SOURCES) |
| 108 | + file(READ "${COMPILER_RT_FORCE_TEST_BUILTINS_DIR}/${BUILTIN_LIB_TARGET_NAME}.sources.txt" BUILTIN_LIB_SOURCES) |
109 | 109 | endif() |
110 | 110 | list(LENGTH BUILTIN_LIB_SOURCES BUILTIN_LIB_SOURCES_LENGTH) |
111 | 111 | if (BUILTIN_LIB_SOURCES_LENGTH EQUAL 0) |
|
0 commit comments