I'm linking with -sASSERTIONS=2 -O0, but not getting any assertions going off.
https://emscripten.org/docs/porting/Debugging.html says, in the DWARF section: Optimization levels above -O1 or -Og increasingly degrade LLVM debug information (as with other architectures), and optimization flags at link time also disable Emscripten’s runtime ASSERTIONS checks. Does -O0 disable ASSERTIONS checks? I get this warning when linking with, or without -O0: em++: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations] Which makes me wonder why binaryen optimisations are being done? Thanks very much, John Dallman -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/CAH1xqgke4V%3DvuAOACzm2uf8WgKxQhnS9x4fC3-fLV_mKonZcHQ%40mail.gmail.com.
