llvm.org GIT mirror llvm / e0c0a71
utils/llvm-lit: Generate "llvm-lit.py" rather than "llvm-lit" on Win32 hosts to let llvm-lit.py --use-processes work. llvm-lit needs suffix.py for multiprocess to find a main module. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196328 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 5 years ago
2 changed file(s) with 13 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
0 if (WIN32 AND NOT CYGWIN)
1 # llvm-lit needs suffix.py for multiprocess to find a main module.
2 set(suffix .py)
3 endif ()
4
5 configure_file(
16 llvm-lit.in
2 ${LLVM_TOOLS_BINARY_DIR}/llvm-lit
7 ${LLVM_TOOLS_BINARY_DIR}/llvm-lit${suffix}
38 )
1010
1111 include $(LEVEL)/Makefile.common
1212
13 all:: $(ToolDir)/llvm-lit
13 # llvm-lit needs suffix.py for multiprocess to find a main module.
14 ifeq ($(HOST_OS),MingW)
15 Suffix := .py
16 endif
1417
15 $(ToolDir)/llvm-lit: llvm-lit.in Makefile $(ToolDir)/.dir
18 all:: $(ToolDir)/llvm-lit$(Suffix)
19
20 $(ToolDir)/llvm-lit$(Suffix): llvm-lit.in Makefile $(ToolDir)/.dir
1621 $(Echo) "Creating 'llvm-lit' script..."
1722 $(Verb)$(ECHOPATH) s=@LLVM_SOURCE_DIR@=$(LLVM_SRC_ROOT)=g > lit.tmp
1823 $(Verb)$(ECHOPATH) s=@LLVM_BINARY_DIR@=$(LLVM_OBJ_ROOT)=g >> lit.tmp