diff --git a/build.sh b/build.sh index d5e402e..c8784c4 100755 --- a/build.sh +++ b/build.sh @@ -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