forked from OSchip/llvm-project
Use absolute path name for "analyze" since we are changing directories.
llvm-svn: 4483
This commit is contained in:
parent
dcf31cec85
commit
63e0b84674
|
@ -8,13 +8,16 @@
|
||||||
LEVEL = ../../../..
|
LEVEL = ../../../..
|
||||||
include $(LEVEL)/test/Makefile.tests
|
include $(LEVEL)/test/Makefile.tests
|
||||||
|
|
||||||
|
## Get absolute pathname for analyze
|
||||||
|
LANALYZE_ABS := $(shell cd `dirname $(LANALYZE)`; pwd)/analyze
|
||||||
|
|
||||||
TESTS := $(wildcard *.ll)
|
TESTS := $(wildcard *.ll)
|
||||||
FTESTS := $(wildcard *.llx) # Freeform tests
|
FTESTS := $(wildcard *.llx) # Freeform tests
|
||||||
|
|
||||||
all:: $(addprefix Output/, $(TESTS:%.ll=%.out))
|
all:: $(addprefix Output/, $(TESTS:%.ll=%.out))
|
||||||
|
|
||||||
Output/%.out: %.ll $(LANALYZE) Output/.dir
|
Output/%.out: %.ll $(LANALYZE) Output/.dir
|
||||||
(cd Output/; $(LANALYZE) -datastructure ../$< || \
|
(cd Output/; $(LANALYZE_ABS) -datastructure ../$< || \
|
||||||
( rm -f ../$@; ../$(FAILURE) ../$@ ))
|
( rm -f ../$@; ../$(FAILURE) ../$@ ))
|
||||||
|
|
||||||
all:: $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
|
all:: $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
|
||||||
|
|
Loading…
Reference in New Issue