summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/cmake.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/spack/spack/build_systems/cmake.py b/lib/spack/spack/build_systems/cmake.py
index 5230aa240e..f3b4ad35d6 100644
--- a/lib/spack/spack/build_systems/cmake.py
+++ b/lib/spack/spack/build_systems/cmake.py
@@ -90,9 +90,13 @@ class CMakePackage(spack.package_base.PackageBase):
with when("build_system=cmake"):
# https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html
+ # See https://github.com/spack/spack/pull/36679 and related issues for a
+ # discussion of the trade-offs between Release and RelWithDebInfo for default
+ # builds. Release is chosen to maximize performance and reduce disk-space burden,
+ # at the cost of more difficulty in debugging.
variant(
"build_type",
- default="RelWithDebInfo",
+ default="Release",
description="CMake build type",
values=("Debug", "Release", "RelWithDebInfo", "MinSizeRel"),
)