Mixing Sanitized and Coverage builds

Vladislav Pravilnikov (BLP/ GEORGIA (REMOTE) vpravilnikov@bloomberg.net
Tue Oct 10 12:56:52 GMT 2023


There are two options in gcc which can formally be used simultaneously:
*–fsanitize=address enables Sanitized build
*–ftest-coverage -fprofile-arcs (or just –coverage) enables Test/Code Coverage build
One possible practical purpose of such mixing is to reduce the number of builds (which can be quite time consuming).
But the question is: can we really mix these two builds? Can each of them impact the behavior/results of another one making a difference from a separate build?
Any ideas/experience?

Thanks in advance.


More information about the Gcc-help mailing list