Commit 157148f4 authored by nagayama15's avatar nagayama15

リリースビルド時のコンパイルフラグを変更

parent 709d34a7
...@@ -5,11 +5,13 @@ WATERMARK := 77 ...@@ -5,11 +5,13 @@ WATERMARK := 77
CC := clang CC := clang
CFLAGS := \ CFLAGS := \
-O2 \
-DBUILD_DIR="\"$$PWD/8cc\"" \ -DBUILD_DIR="\"$$PWD/8cc\"" \
-O2 -DNDEBUG
8CCFLAGS := \ 8CCFLAGS := \
-DBUILD_DIR="\"$$PWD/8cc\"" -DBUILD_DIR="\"$$PWD/8cc\"" \
-DNDEBUG
LDFLAGS := \ LDFLAGS := \
-no-pie -no-pie
......
...@@ -26,7 +26,7 @@ ${BINS}: ${LLS} ${LLS_0} ${LLS_1} ${LLS_2} ${LLS_3} ...@@ -26,7 +26,7 @@ ${BINS}: ${LLS} ${LLS_0} ${LLS_1} ${LLS_2} ${LLS_3}
${OBJ_DIR}/%.ll: %.c ${OBJ_DIR}/%.ll: %.c
@mkdir -p ${@D} @mkdir -p ${@D}
clang -emit-llvm -S -O2 -o $@ $< clang -emit-llvm -S -DNDEBUG -O2 -o $@ $<
%-0.ll: %.ll %-0.ll: %.ll
opt -load=${ROOT}/bin/src/nykk.so -block-wm -watermark=0 -S -o $@ $< 2> ${@:.ll=.txt} opt -load=${ROOT}/bin/src/nykk.so -block-wm -watermark=0 -S -o $@ $< 2> ${@:.ll=.txt}
......
...@@ -6,6 +6,7 @@ CC := clang ...@@ -6,6 +6,7 @@ CC := clang
CXX := clang++ CXX := clang++
CFLAGS := \ CFLAGS := \
-DNDEBUG \
-D_LARGEFILE64_SOURCE=1 \ -D_LARGEFILE64_SOURCE=1 \
-DHAVE_HIDDEN \ -DHAVE_HIDDEN \
-O2 -O2
......
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