Amir Levy
Amir Levy
Thanks, -Wl,--fatal-warnings solves the linker flags issue. Note that target_link_options(${target_name} PRIVATE "LINKER:--fatal-warnings") produces -Xlinker
Still happens with 1.39.17
It is specific to thin LTO, regular/full works. Since INTERPROCEDURAL_OPTIMIZATION produces -flto=thin, I think the toolchain (Emscripten.cmake) should change CMAKE_CXX_COMPILE_OPTIONS_IPO to full.
https://github.com/emscripten-core/emscripten/pull/11517