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

Change compiler optimisation to -O1 when running with thread sanitizer #13

Closed killenb closed 4 years ago

killenb commented 4 years ago

If the build type is Debug, we currently set the compiler optiomisation to -O0. We want this for debugging and the coverage report needs it. The thread-sanitizer however needs -O1. As we set -O0 in the cmake scripts, we cannot set it to -O1 at the console.

Task: