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
c478a626a8
commit
743ebcd3bc
@ -20,6 +20,12 @@ if (NOT PACKAGE_DIR STREQUAL "")
|
|||||||
set(LINKER_FLAGS "${LINKER_FLAGS} --preload-file ${REALPATH_PACKAGE_DIR}@/")
|
set(LINKER_FLAGS "${LINKER_FLAGS} --preload-file ${REALPATH_PACKAGE_DIR}@/")
|
||||||
endif()
|
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
|
set_target_properties(bergamot-translator-worker PROPERTIES
|
||||||
SUFFIX ".js"
|
SUFFIX ".js"
|
||||||
LINK_FLAGS ${LINKER_FLAGS}
|
LINK_FLAGS ${LINKER_FLAGS}
|
||||||
|
Loading…
Reference in New Issue
Block a user