Skip to content

Enable TSAN/ASAN compiler options for only GNU#191

Merged
knoepfel merged 1 commit intoFramework-R-D:mainfrom
knoepfel:fix-sanitizer-cmake
Dec 16, 2025
Merged

Enable TSAN/ASAN compiler options for only GNU#191
knoepfel merged 1 commit intoFramework-R-D:mainfrom
knoepfel:fix-sanitizer-cmake

Conversation

@knoepfel
Copy link
Member

The following C++ compile options were enabled for the GNU, Clang, and AppleClang compilers although they are only supported for GNU:

  • -fno-omit-frame-pointer
  • -fno-optimize-sibling-calls

This PR replaces the $<COMPILER_LANGUAGE:CXX> [sic, should have been COMPILE_LANGUAGE] generator expression with $<COMPILE_LANG_AND_ID:CXX,GNU>. It also guards the generator expression by using quotes as breaking generator expressions across multiple lines can cause problems (I did not get successful builds without the quotes).

@knoepfel knoepfel requested a review from greenc-FNAL December 16, 2025 16:15
Copy link
Contributor

@pcanal pcanal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@codecov
Copy link

codecov bot commented Dec 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@            Coverage Diff             @@
##             main     #191      +/-   ##
==========================================
- Coverage   81.61%   81.46%   -0.15%     
==========================================
  Files         117      117              
  Lines        2099     2099              
  Branches      332      332              
==========================================
- Hits         1713     1710       -3     
- Misses        254      255       +1     
- Partials      132      134       +2     
Flag Coverage Δ
unittests 81.46% <ø> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update beaa933...df01c25. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@knoepfel knoepfel merged commit fc53453 into Framework-R-D:main Dec 16, 2025
36 checks passed
@knoepfel knoepfel deleted the fix-sanitizer-cmake branch December 16, 2025 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants