summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/llvm/package.py
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2023-05-04 17:33:35 +0200
committerGitHub <noreply@github.com>2023-05-04 11:33:35 -0400
commit86d3bad1e05140398f6e19919de38928f3d0c484 (patch)
treef1bc0fa88f22ce038298e57bb6868be5e25110bf /var/spack/repos/builtin/packages/llvm/package.py
parent600955edd4ca22b2d94e725706fc4733d5c4e4d9 (diff)
downloadspack-86d3bad1e05140398f6e19919de38928f3d0c484.tar.gz
spack-86d3bad1e05140398f6e19919de38928f3d0c484.tar.bz2
spack-86d3bad1e05140398f6e19919de38928f3d0c484.tar.xz
spack-86d3bad1e05140398f6e19919de38928f3d0c484.zip
cmake build system: change default build type to `Release` (#36679)
This switches the default Make build type to `build_type=Release`. This offers: - higher optimization level, including loop vectorization on older GCC - adds NDEBUG define, which disables assertions, which could cause speedups if assertions are in loops etc - no `-g` means smaller install size Downsides are: - worse backtraces (though this does NOT strip symbols) - perf reports may be useless - no function arguments / local variables in debugger (could be of course) - no file path / line numbers in debugger The downsides can be mitigated by overriding to `build_type=RelWithDebInfo` in `packages.yaml`, if needed. The upside is that builds will be MUCH smaller (and faster) with this change. --------- Co-authored-by: Gregory Becker <becker33@llnl.gov>
Diffstat (limited to 'var/spack/repos/builtin/packages/llvm/package.py')
-rw-r--r--var/spack/repos/builtin/packages/llvm/package.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py
index c7cc2df3c8..f62822e3ca 100644
--- a/var/spack/repos/builtin/packages/llvm/package.py
+++ b/var/spack/repos/builtin/packages/llvm/package.py
@@ -162,12 +162,6 @@ class Llvm(CMakePackage, CudaPackage):
multi=True,
)
variant(
- "build_type",
- default="Release",
- description="CMake build type",
- values=("Debug", "Release", "RelWithDebInfo", "MinSizeRel"),
- )
- variant(
"omp_tsan",
default=False,
when="@6:",