emscripten-core / emscripten-core/emscripten

failing command line when adding -lworkerfs.js

Open
#17,943 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.7
clang version 15.0.0

Hello. Not sure if this is a bug or not. If this is not a bug i apologize.
I'm trying to run this command line:

` emcc --bind -lworkerfs.js -o XXXXX.js XXXXX.cpp -s WASM=1`

It fails with this message:

`emcc: error: .js: No such file or directory (".js" was expected to be an input file, based on the commandline arguments provided)`

If i run the command without "-lworkerfs.js" everything works fine but i can't open files later.
No idea what is happening

Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.