diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-08-02 00:39:42 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-08-02 00:39:42 +0000 |
commit | b7698a49c2a9e732fa02c7ebee98ca5c7173b5fc (patch) | |
tree | 98e5f48f16faf1ddf8b27f8c0bceaf14ebba4905 /utils/llvm-lit/Makefile | |
parent | 6647033565456120ba24d83450bada5bb3096187 (diff) | |
download | external_llvm-b7698a49c2a9e732fa02c7ebee98ca5c7173b5fc.zip external_llvm-b7698a49c2a9e732fa02c7ebee98ca5c7173b5fc.tar.gz external_llvm-b7698a49c2a9e732fa02c7ebee98ca5c7173b5fc.tar.bz2 |
tests: Add an 'llvm-lit' tool (script), which gets generated as part of the
build and has the object build directory baked into it. This allows 'llvm-lit'
to properly find the information needed to run the test suite in all cases,
without requiring the user to have LLVM or 'lit' available in their PATH, for
example.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110000 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/llvm-lit/Makefile')
-rw-r--r-- | utils/llvm-lit/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/llvm-lit/Makefile b/utils/llvm-lit/Makefile new file mode 100644 index 0000000..3b96809 --- /dev/null +++ b/utils/llvm-lit/Makefile @@ -0,0 +1,21 @@ +##===- utils/llvm-lit/Makefile -----------------------------*- Makefile -*-===## +# +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +##===----------------------------------------------------------------------===## + +LEVEL = ../.. + +include $(LEVEL)/Makefile.common + +all:: $(ToolDir)/llvm-lit + +$(ToolDir)/llvm-lit: llvm-lit.in $(ObjDir)/.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)chmod +x $@ |