I am not sure if any c++ compiler can actually compile a single file in parallel but usually you have many small to large files in compiling a project then "make -j" or "ninja" can build in parallel, and it is quite embarrassingly parallel task (but very memory intensive too).