build from source with scons is slow

Godot Version

Godot 4.6

Windows 11

Question

I followed the docs to compile my project using scons. It works well for windows, but for the web the command hangs for at least 3 hours. I have 16 cores so I use the -j 15 flag.

Complete output :

PS C:\Program Files\Godot\source\godot-master> scons platform=web target=template_debug -j 15
scons: Reading SConscript files ...
cache:WARNING: Accessing the Emscripten cache at "C:\Program Files\emsdk\upstream\emscripten\cache" (for "sanity") is taking a long time, another process should be writing to it. If there are none and you suspect this process has deadlocked, try deleting the lock file "C:\Program Files\emsdk\upstream\emscripten\cache\cache.lock" and try again. If this occurs deterministically, consider filing a bug.

I looked into the warning but there is no cache.lock file. contents of emscripten cache directory :

PS C:\Users\User> dir "C:\Program Files\emsdk\upstream\emscripten\cache"


    Répertoire : C:\Program Files\emsdk\upstream\emscripten\cache


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        02/04/2026     12:14                sysroot
-a----        02/04/2026     12:14              1 sysroot_install.stamp

Any idea what might be causing this ? Thanks ! :grinning_face: