Open vittorioromeo opened 1 month ago
@juj may have some idea what is going on here? I think maybe you need a forked version of ccache?
Sorry, not quite sure. It's been a while since I looked at ccache. (mainly due to not being able to make it deterministically run faster than non-ccache runs)
When I added support for ccache, I did not utilize it with the -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
parameter (this is the first I learn about this feature now).
The way the current Emsdk installation enables ccache is to "fuse" it with Emscripten, i.e. if ccache is installed and activated, then simply calling emcc ...
will invoke it via ccache.
I'm using the canonical CMake way of enabling
ccache
via-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
. On my MSYS2/CLANG64 installation of Emscripten, this technique fails, probably due to theemscripten\em++.bat
wrapper not correctly handlingccache
as a prefix.Version of emscripten/emsdk:
Failing command line in full:
(This error is repeated for every single object file.)
Full link command and output with
-v
appended: Linking stage is never reached.