Skip to content

Commit

Permalink
Merge pull request #5 from sterpe/master
Browse files Browse the repository at this point in the history
Add `-s EMULATE_FUNCTION_POINTER_CASTS=1` to build flags.  Issue #4.
  • Loading branch information
kripken committed Jan 30, 2015
2 parents dc5df54 + 2cd8ff9 commit f38c6bf
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 f38c6bf

Please sign in to comment.