Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22001

What is the recommend way to add custom flag (-fsanitize=thread) when building gcc/libstdc++ from source?

$
0
0

I am using thread sanitizer to debug my code, and the comment in this answer mentioned to avoid false positive brought by newer C++ features such as std::thread and std::future, I should compile the libstdc++ with -fsanitize=thread flag.

I have downloaded the source code of gcc 10 and have completed the default compilation. But what is the recommend way to add -fsanitize=thread to the libstdc++?


Viewing all articles
Browse latest Browse all 22001

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>