Speedup tcc builds by not using -g ##build

This commit is contained in:
pancake 2022-11-23 01:26:40 +01:00 committed by pancake
parent 8ddbc2c55a
commit aa536ce554
5 changed files with 6 additions and 4 deletions

View File

@ -12,7 +12,7 @@ CFLAGS+=-I../../include
CFLAGS+=-fstrict-aliasing CFLAGS+=-fstrict-aliasing
CFLAGS+=-I../../libr/include CFLAGS+=-I../../libr/include
CFLAGS+=-Wall -g # CFLAGS+=-Wall -g
LDFLAGS+=-shared LDFLAGS+=-shared
ifeq (${OSNAME},darwin) ifeq (${OSNAME},darwin)
SOEXT?=dylib SOEXT?=dylib

View File

@ -5,6 +5,5 @@ OBJS=search.o bytepat.o strings.o aes_find.o privkey_find.o sm4_find.o
OBJS+=regexp.o keyword.o uds.o rabin_karp.o OBJS+=regexp.o keyword.o uds.o rabin_karp.o
# OBJ+=rsakey.o # OBJ+=rsakey.o
R2DEPS=r_util r_crypto R2DEPS=r_util r_crypto
CFLAGS+=-g
include ../rules.mk include ../rules.mk

View File

@ -27,4 +27,5 @@ LDFLAGS_SONAME=-soname
endif endif
CC_LIB=${CC} ${LDFLAGS_LIB} -o ${LIBSO} CC_LIB=${CC} ${LDFLAGS_LIB} -o ${LIBSO}
FLAGS_DEBUG=-g # FLAGS_DEBUG=-g
FLAGS_DEBUG=

View File

@ -13,7 +13,8 @@ else
CS_RELEASE=1 CS_RELEASE=1
endif endif
CAPSTONE_CFLAGS?=-g # CAPSTONE_CFLAGS?=-g
CAPSTONE_CFLAGS=
# CAPSTONE_MAKEFLAGS?=CAPSTONE_ARCHS="arm aarch64" # CAPSTONE_MAKEFLAGS?=CAPSTONE_ARCHS="arm aarch64"
GIT?=git GIT?=git

View File

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
export CC="tcc" export CC="tcc"
export DEBUG=0
exec sys/install.sh --with-compiler=tcc $* exec sys/install.sh --with-compiler=tcc $*