File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,16 @@ cannonicalize_cmake_boolean(COMGR_DISABLE_SPIRV)
10
10
11
11
configure_file (lit.site.cfg.py.in lit.site.cfg.py @ONLY)
12
12
13
- # Comgr source build
14
- if (EXISTS "${LLVM_TOOLS_BINARY_DIR} /../../bin/llvm-lit" )
15
- set (LLVM_LIT_PATH "${LLVM_TOOLS_BINARY_DIR} /../../bin/llvm-lit" )
16
- # LLVM external projects build
17
- else ()
18
- set (LLVM_LIT_PATH "${LLVM_TOOLS_BINARY_DIR} /llvm-lit" )
13
+ if (NOT DEFINED LLVM_LIT_PATH)
14
+ # Comgr source build
15
+ if (EXISTS "${LLVM_TOOLS_BINARY_DIR} /../../bin/llvm-lit" )
16
+ set (LLVM_LIT_PATH "${LLVM_TOOLS_BINARY_DIR} /../../bin/llvm-lit" )
17
+ # LLVM external projects build
18
+ else ()
19
+ set (LLVM_LIT_PATH "${LLVM_TOOLS_BINARY_DIR} /llvm-lit" )
20
+ endif ()
19
21
endif ()
22
+ message ("--LLVM_LIT_PATH: ${LLVM_LIT_PATH} " )
20
23
21
24
add_custom_target (test -lit COMMAND "${LLVM_LIT_PATH} "
22
25
"${CMAKE_CURRENT_BINARY_DIR} " -v)
You can’t perform that action at this time.
0 commit comments