Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing BUILD_AS_WORKER parameter #98

Closed
cawa-93 opened this issue May 16, 2021 · 2 comments
Closed

Missing BUILD_AS_WORKER parameter #98

cawa-93 opened this issue May 16, 2021 · 2 comments
Labels

Comments

@cawa-93
Copy link
Contributor

cawa-93 commented May 16, 2021

It seems here was missing BUILD_AS_WORKER and ENVIRONMENT=worker.

mkdir -p dist/js
emcc src/subtitles-octopus-worker.bc $(OCTP_DEPS) \
--pre-js src/pre-worker.js \
--pre-js src/unbrotli.js \
--post-js src/SubOctpInterface.js \
--post-js src/post-worker.js \
-s WASM=1 \
$(EMCC_COMMON_ARGS)

@cawa-93 cawa-93 changed the title Missing BUILD_AS_WORKER param Missing BUILD_AS_WORKER parameter May 16, 2021
@TheOneric
Copy link
Member

ENVIRONMENT=worker apparently was implied (with our other settings) in prior versions of emscripten, with the next emscripten bump it’ll be made explicit.

The BUILD_AS_WORKER documentation you’re linking is specific to emscripten_create_worker(…) which we do not use. Is there any documentation that this is a more general setting and if so what is the difference to ENVIRONMENT=worker?

@TheOneric
Copy link
Member

ENVIRONMENT=worker was now added explicitly. As noted, BUILD_AS_WORKER appears to only apply to a emscripten-specific worker API not used by us, so probably not required. If that's incorrect, don't hesitate to point out why it should be set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants