aboutsummaryrefslogtreecommitdiff
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
commit1694eec4af37984a14520a377f4345516e7c3807 (patch)
treebf351d9860decc4f72d67a4c4d87d118b1f34701
parent3ee8eed03416f1b78e8c70dff98ce6ed2e78cda0 (diff)
Use llvm-link to link the .bc with testing.bc. This helps test the new
llvm-link dependent libraries feature. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16276 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--projects/Stacker/test/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/projects/Stacker/test/Makefile b/projects/Stacker/test/Makefile
index f93d211f89..da74872ec2 100644
--- a/projects/Stacker/test/Makefile
+++ b/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"