summaryrefslogtreecommitdiffstats
path: root/llvm/utils/llvm-lit
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-03-05 09:46:45 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-03-05 09:46:45 +0000
commite9dc4d309ab19e96febd18a3fe7de84cd94eef33 (patch)
treef9724f9c7277b6e76c4f8560474d8f751e389394 /llvm/utils/llvm-lit
parentf86dd9e3ec4b3ebb5176711b4b27fdfc3da85597 (diff)
downloadbcm5719-llvm-e9dc4d309ab19e96febd18a3fe7de84cd94eef33.tar.gz
bcm5719-llvm-e9dc4d309ab19e96febd18a3fe7de84cd94eef33.zip
Introduce $(ECHOPATH) to print DOSish path string on MSYS bash for alternative of $(ECHO).
On mingw and python/w32, lit would not be expected to understand MSYS-style path. llvm-svn: 127073
Diffstat (limited to 'llvm/utils/llvm-lit')
-rw-r--r--llvm/utils/llvm-lit/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/utils/llvm-lit/Makefile b/llvm/utils/llvm-lit/Makefile
index 702591f4959..77021bbc243 100644
--- a/llvm/utils/llvm-lit/Makefile
+++ b/llvm/utils/llvm-lit/Makefile
@@ -13,9 +13,10 @@ include $(LEVEL)/Makefile.common
all:: $(ToolDir)/llvm-lit
-$(ToolDir)/llvm-lit: llvm-lit.in $(ToolDir)/.dir
+$(ToolDir)/llvm-lit: llvm-lit.in Makefile $(ToolDir)/.dir
$(Echo) "Creating 'llvm-lit' script..."
- $(Verb)sed -e "s#@LLVM_SOURCE_DIR@#$(LLVM_SRC_ROOT)#g" \
- -e "s#@LLVM_BINARY_DIR@#$(LLVM_OBJ_ROOT)#g" \
- $< > $@
+ $(Verb)$(ECHOPATH) s=@LLVM_SOURCE_DIR@=$(LLVM_SRC_ROOT)=g > lit.tmp
+ $(Verb)$(ECHOPATH) s=@LLVM_BINARY_DIR@=$(LLVM_OBJ_ROOT)=g >> lit.tmp
+ $(Verb)sed -f lit.tmp $< > $@
$(Verb)chmod +x $@
+ $(Verb)rm -f lit.tmp
OpenPOWER on IntegriCloud