I am facing fatal error C1060: compiler is out of heap space
issue on Windows OS while compiling specific .c files in my project. Those .c files are huge and they eat memory when i run the build in -j%NUMBER_OF_PROCESSORS% which will consume all available cpu cores (i.e 20) and results to memory issues. I try to reduce no of cores to -j10, But still i face heap space issues intermittently.
I want to serialize those specific .c files and came across .NOTPARALLEL in Make . I try to tag those problematic .obj (eg: foo.obj, bar.obj….like there are 15 such .obj) files compilation with .NOTPARALLEL, But build time is increased with that, Reason is because pre-req of foo.obj ,bar.obj files are also running in serial mode i guess right?
how can i work around this? is there a way to just limit the serialization only for problematic .obj files but not its pre-requisites ?