I think only the tools/ llvm part of the compilation is allowing jobs/commands to run simultaneously. As a result, the build times from scratch are a bit time-intensive. Would it be possible to add -j$(NPROC) after $(MAKE) to allow using as many cores as possible?
Note, that there are some parallelized portions already in use. Specifically, in the llvm part due to the use of ninja.
I think only the
tools
/llvm
part of the compilation is allowing jobs/commands to run simultaneously. As a result, the build times from scratch are a bit time-intensive. Would it be possible to add-j$(NPROC)
after$(MAKE)
to allow using as many cores as possible?Note, that there are some parallelized portions already in use. Specifically, in the
llvm
part due to the use ofninja
.Also, in a separate file related to
dragonegg
that doesn't seem to be called, we have the desired$(MAKE)
command using-j$(NPROC)
:https://github.com/r-wasm/webr/blob/2f3b4673bded2aa62249249efe6636bfa3d8348c/tools/dragonegg/Makefile#L40