diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -3,6 +3,7 @@ OPTLL:=$(addsuffix .opt.ll,$(BIN)) OBJ:=$(addsuffix .o,$(BIN)) ASM:=$(addsuffix .s,$(BIN)) BC:=$(addsuffix .bc,$(BIN)) +DEPS:=rts.ll all: $(BIN) @@ -18,11 +19,8 @@ $(ASM): %.s: %.bc $(BC): %.bc: %.opt.ll llvm-as-11 $^ -o $@ -$(OPTLL): %.opt.ll: %.ll - opt-11 -S -always-inline $^ -o $@ - opt-11 -S -instcombine $@ -o $@ - opt-11 -S -O3 $@ -o $@ - opt-11 -S -O3 $@ -o $@ +$(OPTLL): %.opt.ll: $(DEPS) %.ll + cat $^ | opt-11 -S -O3 -o $@ clean: $(RM) $(BIN) $(OBJ) $(ASM) $(BC) |