I'm getting a warning both in em++ and emcc after the upgrade for each source file:
em++: warning: linker setting ignored during compilation: 'ASSERTIONS' [-Wunused-command-line-argument]
emcc: warning: linker setting ignored during compilation: 'ASSERTIONS' [-Wunused-command-line-argument]
This is used in the command line switch "-s ASSERTIONS=0", and the host system is macOS.
Looking into settings.js, the ASSERTIONS settings variable is still there, so I'm not sure what would cause the warning.
Isn't the ASSERTIONS options needed for compilation of regular object files, not just in the linker step?
This is a verbose command line as example:
[4/17] /Users/floh/projects/fips-sdks/emsdk/upstream/emscripten/em++ -I/Users/floh/projects/chips -I/Users/floh/projects/fips-imgui/imgui -I/Users/floh/projects/sokol -I/Users/floh/projects/sokol/util -s DISABLE_EXCEPTION_CATCHING=1 -fno-exceptions -fno-rtti -std=c++11 -fstrict-aliasing -Wall -Wno-multichar -Wextra -Wno-unknown-pragmas -Wno-ignored-qualifiers -Wno-long-long -Wno-overloaded-virtual -Wno-deprecated-writable-strings -Wno-unused-volatile-lvalue -Wno-inconsistent-missing-override -Wno-warn-absolute-paths -Wno-expansion-to-defined -flto -s ASSERTIONS=0 -O3 -DNDEBUG -Wno-type-limits -Wno-missing-field-initializers -std=gnu++11 -MD -MT fips-imgui_imgui/CMakeFiles/imgui.dir/imgui/imgui_tables.cpp.obj -MF fips-imgui_imgui/CMakeFiles/imgui.dir/imgui/imgui_tables.cpp.obj.d -o fips-imgui_imgui/CMakeFiles/imgui.dir/imgui/imgui_tables.cpp.obj -c /Users/floh/projects/fips-imgui/imgui/imgui_tables.cpp
em++: warning: linker setting ignored during compilation: 'ASSERTIONS' [-Wunused-command-line-argument]
Otherwise no obvious problems. The wasm file got a bit bigger, from 623KB to 641KB, but in this case the previous WASM is from mid-January, so this might also be attributes to LLVM updates.
Is the LTO about the build tools being compiled with LTO enabled, or about Emscripten release build enabling LTO by default? (I always had LTO enabled, so I wouldn't expect much difference in runtime performance), in either case build times and runtime performance seems to be about the same for me.
I'll check previous SDK versions now to see when this ASSERTIONS warning first appeared.
Cheers,
-Floh.