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.
em++: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations]
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 emscripten-disc...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/CAH1xqgke4V%3DvuAOACzm2uf8WgKxQhnS9x4fC3-fLV_mKonZcHQ%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpTc8RSEnCwtS%3De0Cin_sn7pZ18QTvhbO36NASMsmz1SVg%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/CAH1xqgm9t_ZU-1p__bZJdGw543RO7UZRWBXW92_KdK%2BY09xGwg%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/CAH1xqgnK6_oq246cyPRMVBtab5sxy5-4sQ9KHzUZ-DiVdeyVUQ%40mail.gmail.com.