Skip to content

Commit

Permalink
optimisation options for chrome build
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaamani committed Mar 6, 2013
1 parent 7aacb89 commit 8437ee0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -22,6 +22,9 @@ EXPORTED_FUNCS= -s EXPORTED_FUNCTIONS="['_gcry_strerror','_malloc','_free','__gc
#closure compiler makes exported VFS unusable..
OPTIMISATION= -O2 --closure 0 --llvm-opts 1 --minify 0 -s LINKABLE=1 $(EXPORTED_FUNCS)

#for google chrome dev, use max O1, dont use llvm-opts
#OPTIMISATION= -O1 --closure 1 --llvm-opts 0 --minify 0 -s LINKABLE=1 $(EXPORTED_FUNCS)

module-optimised:
mkdir -p lib/
$(EMCC) src/jsapi.c -I$(CRYPTO_BUILD)/include -lotr -L$(CRYPTO_BUILD)/lib \
Expand Down

0 comments on commit 8437ee0

Please sign in to comment.