Add some hints to optimize asmjs build

This commit is contained in:
pancake 2017-01-23 13:56:10 +01:00
parent b2cefac2ef
commit bbed5daef1

View File

@ -14,7 +14,11 @@ ENTITL=radare2.xcent
#LDFLAGS+=-flto
ifeq (${COMPILER},emscripten)
# https://kripken.github.io/emscripten-site/docs/optimizing/Optimizing-Code.html
# -s INLINING_LIMIT=1
# --memory-init-file 0
CFLAGS+=-s EXPORTED_FUNCTIONS='["_r2_asmjs_cmd"]'
#CFLAGS+=-Oz --memory-init-file 0 -s EXPORTED_FUNCTIONS='["_r2_asmjs_cmd"]'
endif
FOOD_LIBS=$(addprefix ../../libr/,$(subst r_,,$(BINDEPS)))