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)
1010
1111configure_file (lit.site.cfg.py.in lit.site.cfg.py @ONLY)
1212
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 ()
1921endif ()
22+ message ("--LLVM_LIT_PATH: ${LLVM_LIT_PATH} " )
2023
2124add_custom_target (test -lit COMMAND "${LLVM_LIT_PATH} "
2225 "${CMAKE_CURRENT_BINARY_DIR} " -v)
You can’t perform that action at this time.
0 commit comments