Rule alignment fixes for non compliant platforms / Fix for emscripten demo

This commit is contained in:
BenTalagan
2019-11-19 09:54:11 +01:00
parent 3e0150a34f
commit 94677f4af8
6 changed files with 23 additions and 5 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ CXXFLAGS+=-I ./ -I ../ -I ../src/include/espeak-ng
#CXXFLAGS+=-s USE_PTHREADS=1
# NOTE: extra flags for emscripten
EM_CXXFLAGS=-s RESERVED_FUNCTION_POINTERS=2 --memory-init-file 0 -s FORCE_FILESYSTEM=1 -s WASM=0
EM_CXXFLAGS=-s RESERVED_FUNCTION_POINTERS=2 --memory-init-file 0 -s FORCE_FILESYSTEM=1 -s WASM=0 -s ERROR_ON_UNDEFINED_SYMBOLS=0
+2
View File
@@ -119,6 +119,8 @@ eSpeakNGWorker.prototype.synthesize_ipa = function (aText, aCallback) {
if (typeof WorkerGlobalScope !== 'undefined') {
var worker;
Module.postRun = Module.postRun || [];
Module.postRun.push(function () {
worker = new eSpeakNGWorker();