mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
strip binaries if and only if optimizing
This commit is contained in:
parent
77ae259e41
commit
3b30dccaac
8
makefile
8
makefile
@ -88,7 +88,7 @@ vg += --leak-check=full --suppressions=valgrind.supp
|
|||||||
db = gdb --args
|
db = gdb --args
|
||||||
javac = "$(JAVA_HOME)/bin/javac"
|
javac = "$(JAVA_HOME)/bin/javac"
|
||||||
jar = "$(JAVA_HOME)/bin/jar"
|
jar = "$(JAVA_HOME)/bin/jar"
|
||||||
strip = :
|
strip = strip
|
||||||
strip-all = --strip-all
|
strip-all = --strip-all
|
||||||
|
|
||||||
rdynamic = -rdynamic
|
rdynamic = -rdynamic
|
||||||
@ -195,7 +195,7 @@ ifeq ($(platform),windows)
|
|||||||
ar = x86_64-pc-mingw32-ar
|
ar = x86_64-pc-mingw32-ar
|
||||||
ranlib = x86_64-pc-mingw32-ranlib
|
ranlib = x86_64-pc-mingw32-ranlib
|
||||||
objcopy = x86_64-pc-mingw32-objcopy
|
objcopy = x86_64-pc-mingw32-objcopy
|
||||||
strip = :
|
strip = x86_64-pc-mingw32-strip
|
||||||
inc = "$(root)/win64/include"
|
inc = "$(root)/win64/include"
|
||||||
lib = "$(root)/win64/lib"
|
lib = "$(root)/win64/lib"
|
||||||
pointer-size = 8
|
pointer-size = 8
|
||||||
@ -206,15 +206,19 @@ endif
|
|||||||
|
|
||||||
ifeq ($(mode),debug)
|
ifeq ($(mode),debug)
|
||||||
cflags += -O0 -g3
|
cflags += -O0 -g3
|
||||||
|
strip = :
|
||||||
endif
|
endif
|
||||||
ifeq ($(mode),debug-fast)
|
ifeq ($(mode),debug-fast)
|
||||||
cflags += -O0 -g3 -DNDEBUG
|
cflags += -O0 -g3 -DNDEBUG
|
||||||
|
strip = :
|
||||||
endif
|
endif
|
||||||
ifeq ($(mode),stress)
|
ifeq ($(mode),stress)
|
||||||
cflags += -O0 -g3 -DVM_STRESS
|
cflags += -O0 -g3 -DVM_STRESS
|
||||||
|
strip = :
|
||||||
endif
|
endif
|
||||||
ifeq ($(mode),stress-major)
|
ifeq ($(mode),stress-major)
|
||||||
cflags += -O0 -g3 -DVM_STRESS -DVM_STRESS_MAJOR
|
cflags += -O0 -g3 -DVM_STRESS -DVM_STRESS_MAJOR
|
||||||
|
strip = :
|
||||||
endif
|
endif
|
||||||
ifeq ($(mode),fast)
|
ifeq ($(mode),fast)
|
||||||
cflags += -O3 -g3 -DNDEBUG
|
cflags += -O3 -g3 -DNDEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user