[llvm] r196328 - utils/llvm-lit: Generate "llvm-lit.py" rather than "llvm-lit" on Win32 hosts to let llvm-lit.py --use-processes work.
NAKAMURA Takumi
geek4civic at gmail.com
Tue Dec 3 15:22:18 PST 2013
Author: chapuni
Date: Tue Dec 3 17:22:18 2013
New Revision: 196328
URL: http://llvm.org/viewvc/llvm-project?rev=196328&view=rev
Log:
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.
Modified:
llvm/trunk/utils/llvm-lit/CMakeLists.txt
llvm/trunk/utils/llvm-lit/Makefile
Modified: llvm/trunk/utils/llvm-lit/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-lit/CMakeLists.txt?rev=196328&r1=196327&r2=196328&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-lit/CMakeLists.txt (original)
+++ llvm/trunk/utils/llvm-lit/CMakeLists.txt Tue Dec 3 17:22:18 2013
@@ -1,4 +1,9 @@
+if (WIN32 AND NOT CYGWIN)
+ # llvm-lit needs suffix.py for multiprocess to find a main module.
+ set(suffix .py)
+endif ()
+
configure_file(
llvm-lit.in
- ${LLVM_TOOLS_BINARY_DIR}/llvm-lit
+ ${LLVM_TOOLS_BINARY_DIR}/llvm-lit${suffix}
)
Modified: llvm/trunk/utils/llvm-lit/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-lit/Makefile?rev=196328&r1=196327&r2=196328&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-lit/Makefile (original)
+++ llvm/trunk/utils/llvm-lit/Makefile Tue Dec 3 17:22:18 2013
@@ -11,9 +11,14 @@ LEVEL = ../..
include $(LEVEL)/Makefile.common
-all:: $(ToolDir)/llvm-lit
+# llvm-lit needs suffix.py for multiprocess to find a main module.
+ifeq ($(HOST_OS),MingW)
+ Suffix := .py
+endif
-$(ToolDir)/llvm-lit: llvm-lit.in Makefile $(ToolDir)/.dir
+all:: $(ToolDir)/llvm-lit$(Suffix)
+
+$(ToolDir)/llvm-lit$(Suffix): llvm-lit.in Makefile $(ToolDir)/.dir
$(Echo) "Creating 'llvm-lit' script..."
$(Verb)$(ECHOPATH) s=@LLVM_SOURCE_DIR@=$(LLVM_SRC_ROOT)=g > lit.tmp
$(Verb)$(ECHOPATH) s=@LLVM_BINARY_DIR@=$(LLVM_OBJ_ROOT)=g >> lit.tmp
More information about the llvm-commits
mailing list