mirror of
https://github.com/browsermt/bergamot-translator.git
synced 2024-09-11 05:35:33 +03:00
Extension desired changes (#129)
* Enable worker file system * Avoid node.js-code in emscripten glue-code
This commit is contained in:
parent
8de368c166
commit
a63533b241
@ -20,6 +20,12 @@ if (NOT PACKAGE_DIR STREQUAL "")
|
||||
set(LINKER_FLAGS "${LINKER_FLAGS} --preload-file ${REALPATH_PACKAGE_DIR}@/")
|
||||
endif()
|
||||
|
||||
# Enable worker file system
|
||||
set(LINKER_FLAGS "${LINKER_FLAGS} -lworkerfs.js")
|
||||
|
||||
# Avoid node.js-code in emscripten glue-code
|
||||
set(LINKER_FLAGS "${LINKER_FLAGS} -s ENVIRONMENT=web,worker")
|
||||
|
||||
set_target_properties(bergamot-translator-worker PROPERTIES
|
||||
SUFFIX ".js"
|
||||
LINK_FLAGS ${LINKER_FLAGS}
|
||||
|
Loading…
Reference in New Issue
Block a user