Introduce: AMReX_ADDRLINES
(Default: ON)
#3784
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This is adding the new CMake option
AMReX_ADDRLINES
and CMake public interface targetAMReX::FLAGS_ADDRLINES
. This option adds minimal debug info (-g1
/-gline-tables-only
) to executables, which generates more usable backtraces on crashes.In symmetry to GNUmake, we turn this now ON. This is a breaking change.
Note that this flag still creates significant binary size overheads, so package managers might decide to turn if off in deployments. Also, if the increased binary sizes lead to significant startup overhead at scale on HPC systems, we might need to reconsider the default (for CMake and GNUmake) in the future.
Additional background
Binary size benchmarks on WarpX.
Checklist
The proposed changes: