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
The emcc needs the following options to build a non-minified output with symbols:
-O0 # don't optimize
-g2 # how much information to retain, use g3 to produce a DWARF file
-s ASSERTIONS=3 # Add additional assertions to provide more meaningful error messages
The text was updated successfully, but these errors were encountered:
Caveat: -s ASSERTIONS=3 adds the following not-so-useful code to the .js file:
assert(!ENVIRONMENT_IS_WEB, "web environment detected but not enabled at build time. Add 'web' to `-sENVIRONMENT` to enable.");
assert(!ENVIRONMENT_IS_NODE, "node environment detected but not enabled at build time. Add 'node' to `-sENVIRONMENT` to enable.");
assert(!ENVIRONMENT_IS_SHELL, "shell environment detected but not enabled at build time. Add 'shell' to `-sENVIRONMENT` to enable.");
It's not very useful because WEB and WORKER are the same in our case, even if Emscripten wants to distinguish between them.
adamziel
changed the title
Document how to build PHP in dev mode options
Document how to build PHP in dev mode (emcc options)
Apr 1, 2023
The
emcc
needs the following options to build a non-minified output with symbols:The text was updated successfully, but these errors were encountered: