You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on experience from clang, I would have expected -gz to enable debug compression but not necessarily enable any debugging information. Instead, it seems to enable extra debug sections.
emcc hello.cc -o hello.html -g0 -gz
creates a wasm file that is 2.2mb
while
emcc hello.cc -o hello.html -g0
creates one that is 189kb.
The text was updated successfully, but these errors were encountered:
Emscripten doesn't support -gz but it looks like -g<anything> will enable debugging and superseed the previous -g flags. We should probably explicitly ignore -gz.
sbc100
added a commit
to sbc100/emscripten
that referenced
this issue
Apr 9, 2025
Please include the following in your bug report:
Version of emscripten/emsdk:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 4.0.3 (a9651ff)
clang version 21.0.0git (https:/github.com/llvm/llvm-project 6dc41a639334b913e762f65410fcd14a722b137f)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: ~/emsdk/upstream/bin
Failing command line in full:
Full link command and output with
-v
appended:Based on experience from clang, I would have expected
-gz
to enable debug compression but not necessarily enable any debugging information. Instead, it seems to enable extra debug sections.creates a wasm file that is 2.2mb
while
creates one that is 189kb.
The text was updated successfully, but these errors were encountered: