mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-24 09:29:42 +00:00
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
This commit is contained in:
parent
3ee8eed034
commit
1694eec4af
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user