Is it possible to say platformio to use all my CPUs during compiling?

As title,
I have a 7950X3D CPU,
Is it possible to say platformio to use all my CPUs during compiling?

During compiling it uses 16 threads, I would like to try with 32 threads…
is it possible to change this ?

thanks

it seems that same code uses 100% of my CPU threads while compiling for ESP8266
but it uses only 16 threads when compiling on ESP32… weird…

PlatformIO invokes SCons with --jobs (number of jobs to start) with the CPU count by default.

As you can see, the pio command exposes this option via the CLI too, so if you do

pio run -j32

it will pass that number on to SCons which is then supposed to start 32 jobs in parallel.