Skip to content

CMakePackage: Default Build Type #22918

@ax3l

Description

@ax3l

I realized the default build type for CMakePackage in spack is build_type [RelWithDebInfo].

That's cool (I do the same for my projects) because -g comes with no real (runtime) cost and adds understanding on crashes; but there is an important detail: due to legacy reasons, most compilers are set up with -O2 on that build type:
BLAST-WarpX/warpx#1201
BLAST-WarpX/warpx#1203

Are we aware of that and change this somewhere back to -O3? Otherwise Release might be a better default :)

More background in this thread: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/591

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions