I am working on code coverage for a large project. We build our project which contains hundreds of cpp/h files spread in different directories.
I build our project using latest icpc with options -prof-gen=srcpos before I run profmerge and codecov. I build with parallel mode : make -j
I found the sizes of generated spi file varies a lot and the final code coverage report is incorrect. I suspect the spi file is generated incorrectly.
Is it because of the parallel build? Do I have to do sequential build with prof-gen=srcpos option?