summaryrefslogtreecommitdiffstats
path: root/llvm/projects/Stacker
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-09-11 04:15:09 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-09-11 04:15:09 +0000
commit07e7a5ec18c097e78899d985390caf2a2f2573cb (patch)
tree8804659f5afb672a340341d9aa25bb5c5823076a /llvm/projects/Stacker
parentc90a7653689f2796f866147ed52b70b880d3246c (diff)
downloadbcm5719-llvm-07e7a5ec18c097e78899d985390caf2a2f2573cb.tar.gz
bcm5719-llvm-07e7a5ec18c097e78899d985390caf2a2f2573cb.zip
Use llvm-link to link the .bc with testing.bc. This helps test the new
llvm-link dependent libraries feature. llvm-svn: 16276
Diffstat (limited to 'llvm/projects/Stacker')
-rw-r--r--llvm/projects/Stacker/test/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/projects/Stacker/test/Makefile b/llvm/projects/Stacker/test/Makefile
index f93d211f893..da74872ec2b 100644
--- a/llvm/projects/Stacker/test/Makefile
+++ b/llvm/projects/Stacker/test/Makefile
@@ -43,13 +43,14 @@ test_each: $(TESTS)
@$(ECHO) "Compiling And Optimizing $< to $*.bc"
$(VERB)$(STKRC_EXEC) -f -O4 -s 2048 -o $*.bc $(BUILD_SRC_DIR)/$*.st
-%.s : %.bc
+%.s : %.bc testing.bc
@$(ECHO) "Assembling $< to $*.s"
- $(VERB)$(LLC) -f -o $*.s $*.bc
+ $(VERB)$(LLINK) $*.bc testing.bc -o $*.bcl
+ $(VERB)$(LLC) -f -o $*.s $*.bcl
-% : %.s testing.s
+% : %.s
@$(ECHO) "Linking $*"
- $(VERB)$(CC) -ggdb -L$(BUILD_OBJ_ROOT)/lib/$(CONFIGURATION) testing.s -lstkr_runtime -o $* $*.s
+ $(VERB)$(CC) -ggdb -L$(BUILD_OBJ_ROOT)/lib/$(CONFIGURATION) -lstkr_runtime -o $* $*.s
%.ll : %.bc
@$(ECHO) "Disassembling $< to $*.ll"
OpenPOWER on IntegriCloud