ChimeraTK / project-template

Template for new projects. Can also be used to update cmake scripts in existing projects by merging the changes. This repository intentionally does not have a README.md (which would create conflicts in the projects using this template). For documentation, please follow this link:
https://github.com/ChimeraTK/project-template/blob/master/HowTo_project-template.md
GNU Lesser General Public License v3.0
1 stars 3 forks source link

project-template: add -fno-inline to tsan flags #24

Closed killenb closed 1 year ago

killenb commented 1 year ago

This allows easier debugging as all lines can be reached. The tsan build uses "-o1" for performance reasons. For asan and Debug build we use "-o0", which includes this flag, and for the release builds we want as much optimisation we can get.

phako commented 1 year ago

I think -O1 was mandatory to make TSAN work properly at all, https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual even suggests using -O2