Skip to content

Commit 4b8ed30

Browse files
committed
Replace invalid "-03" option with "-O3"
"zero-three" does nothing. "Oh-three" is a valid option. This meant that our optimized output files were _way_ too big.
1 parent 15f287e commit 4b8ed30

File tree

4 files changed

+521
-1346069
lines changed

4 files changed

+521
-1346069
lines changed

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ EMFLAGS = \
1414
# TODO: Closure?
1515
EMFLAGS_OPTIMIZED= \
1616
-s INLINING_LIMIT=50 \
17-
-03
17+
-O3
1818

1919
EMFLAGS_DEBUG = \
2020
-s INLINING_LIMIT=10 \
@@ -26,22 +26,22 @@ all: js/sql.js js/sql-debug.js js/sql-memory-growth.js js/worker.sql.js js/worke
2626

2727
# sql-debug.js
2828
js/sql-debug-raw.js: $(BITCODE_FILES) js/api.js exported_functions exported_runtime_methods
29-
$(EMCC) $(EMFLAGS) $(EMFLAGS_DEBUG) $(BITCODE_FILES) --pre-js js/api.js -o $@ ;\
29+
$(EMCC) $(EMFLAGS) $(EMFLAGS_DEBUG) $(BITCODE_FILES) --pre-js js/api.js -o $@
3030

3131
js/sql-debug.js: js/shell-pre.js js/sql-debug-raw.js js/shell-post.js
3232
cat $^ > $@
3333

3434
# sql.js
3535
js/sql-raw.js: $(BITCODE_FILES) js/api.js exported_functions exported_runtime_methods
36-
$(EMCC) $(EMFLAGS) $(EMFLAGS_OPTIMIZED) $(BITCODE_FILES) --pre-js js/api.js -o $@ ;\
36+
$(EMCC) $(EMFLAGS) $(EMFLAGS_OPTIMIZED) $(BITCODE_FILES) --pre-js js/api.js -o $@
3737

3838
js/sql.js: js/shell-pre.js js/sql-raw.js js/shell-post.js
3939
cat $^ > $@
4040

4141

4242
# memory growth:
4343
js/sql-memory-growth-raw.js: $(BITCODE_FILES) js/api.js exported_functions exported_runtime_methods
44-
$(EMCC) $(EMFLAGS) $(EMFLAGS_OPTIMIZED) -s ALLOW_MEMORY_GROWTH=1 $(BITCODE_FILES) --pre-js js/api.js -o $@ ;\
44+
$(EMCC) $(EMFLAGS) $(EMFLAGS_OPTIMIZED) -s ALLOW_MEMORY_GROWTH=1 $(BITCODE_FILES) --pre-js js/api.js -o $@
4545

4646
js/sql-memory-growth.js: js/shell-pre.js js/sql-memory-growth-raw.js js/shell-post.js
4747
cat $^ > $@

0 commit comments

Comments
 (0)