Commit 8feafd03 authored by nagayama15's avatar nagayama15

コマンドのバージョン指定を削除

parent 0e179726
LLVM_INCLUDE_DIRS := $(shell llvm-config-6.0 --includedir)
LLVM_INCLUDE_DIRS := $(shell llvm-config --includedir)
CXX := g++
......@@ -12,8 +12,8 @@ CXXFLAGS := \
-fPIC
LDFLAGS := \
$(shell llvm-config-6.0 --ldflags) \
$(shell llvm-config-6.0 --libs)
$(shell llvm-config --ldflags) \
$(shell llvm-config --libs)
.PHONY: all test example clean
......
......@@ -67,7 +67,7 @@ test/stage1-wm/%.o: test/stage1-wm/%-wm.ll
clang -o $@ -c $<
test/stage1-wm/%-wm.ll: test/stage1-wm/%.ll
opt-6.0 -load ../../nykk.so -O2 -block-wm -watermark=${WATERMARK} -S -o $@ $< 2> ${@:%.ll=%-stderr.txt}
opt -load ../../nykk.so -O2 -block-wm -watermark=${WATERMARK} -S -o $@ $< 2> ${@:%.ll=%-stderr.txt}
test/stage1-wm/%.ll: 8cc/%.c
@mkdir -p ${@D}
......
......@@ -23,11 +23,11 @@ ${BINS}: ${LLS} ${LLS_0} ${LLS_1} ${LLS_2}
clang -emit-llvm -S -O2 -o $@ $<
%-0.ll: %.ll
opt-6.0 -load ../../nykk.so -block-wm -watermark=0 -S -o $@ $<
opt -load ../../nykk.so -block-wm -watermark=0 -S -o $@ $<
%-1.ll: %.ll
opt-6.0 -load ../../nykk.so -block-wm -watermark=1 -S -o $@ $<
opt -load ../../nykk.so -block-wm -watermark=1 -S -o $@ $<
%-2.ll: %.ll
opt-6.0 -load ../../nykk.so -block-wm -watermark=2 -S -o $@ $<
opt -load ../../nykk.so -block-wm -watermark=2 -S -o $@ $<
%: %.ll
clang -o $@ $<
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment