Skip to content

Commit

Permalink
Add -s EMULATE_FUNCTION_POINTER_CASTS=1 to build flags. Issue #4.
Browse files Browse the repository at this point in the history
  • Loading branch information
sterpe committed Jan 29, 2015
1 parent dc5df54 commit 2cd8ff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ cd ..
# Note: libz.a generated by EM_SAVE_DIR=1 python tests/runner.py test_zlib

# Test:
#~/Dev/emscripten/emcc -O2 libxml2-2.7.8/xmllint.o libxml2-2.7.8/.libs/libxml2.a libz.a -o xmllint.test.js --embed-file test.xml --embed-file test.xsd
#~/Dev/emscripten/emcc -O2 -s EMULATE_FUNCTION_POINTER_CASTS=1 libxml2-2.7.8/xmllint.o libxml2-2.7.8/.libs/libxml2.a libz.a -o xmllint.test.js --embed-file test.xml --embed-file test.xsd
# js xmllint.test.js --noout --schema test.xsd test.xml

# Production
~/Dev/emscripten/emcc -O2 libxml2-2.7.8/xmllint.o libxml2-2.7.8/.libs/libxml2.a libz.a -o xmllint.raw.js --pre-js pre.js
~/Dev/emscripten/emcc -O2 -s EMULATE_FUNCTION_POINTER_CASTS=1 libxml2-2.7.8/xmllint.o libxml2-2.7.8/.libs/libxml2.a libz.a -o xmllint.raw.js --pre-js pre.js
echo "function validateXML(xml, schema) {" > xmllint.js
echo " var Module = {" >> xmllint.js
echo " xml: xml," >> xmllint.js
Expand Down

0 comments on commit 2cd8ff9

Please sign in to comment.