Update Makefile

This commit is contained in:
Paul m. p. P 2019-08-07 16:13:09 +02:00 committed by GitHub
parent a055ff4f3d
commit f0173af753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ INC += -I$(BUILD)
#default debug options #default debug options
JSFLAGS ?= -O0 -g4 --source-map-base http://localhost:8000 JSFLAGS ?= -O0 -g4 --source-map-base http://localhost:8000
LDFLAGS ?= -m32 LDFLAGS ?= -m32 -Wl,--gc-sections
ifdef EMSCRIPTEN ifdef EMSCRIPTEN
# only for profiling, remove -s EMTERPRETIFY_ADVISE=1 when your EMTERPRETIFY_WHITELIST is ok # only for profiling, remove -s EMTERPRETIFY_ADVISE=1 when your EMTERPRETIFY_WHITELIST is ok
@ -29,7 +29,7 @@ ifdef EMSCRIPTEN
#check if not using emscripten-upstream branch #check if not using emscripten-upstream branch
ifeq (,$(findstring upstream/bin, $(EMMAKEN_COMPILER))) ifeq (,$(findstring upstream/bin, $(EMMAKEN_COMPILER)))
JSFLAGS += -s "BINARYEN_TRAP_MODE='clamp'" JSFLAGS += -s "BINARYEN_TRAP_MODE='clamp'"
LDFLAGS += -Wl,-Map=$@.map,--cref -Wl,--gc-sections LDFLAGS += -Wl,-Map=$@.map,--cref
endif endif
CC = emcc CC = emcc