diff options
author | Cameron Smith <cwsmith@users.noreply.github.com> | 2019-01-26 12:42:24 -0500 |
---|---|---|
committer | Axel Huebl <axel.huebl@plasma.ninja> | 2019-01-26 18:42:24 +0100 |
commit | 4e14752dd6febfbbc4ecc7a6d27376d22127a5f4 (patch) | |
tree | aebd26aaaeeb0b8f0b7aedfba64551e71edf0edc /var | |
parent | 4ab89f4de11e067bc535656381168b93b7c1abac (diff) | |
download | spack-4e14752dd6febfbbc4ecc7a6d27376d22127a5f4.tar.gz spack-4e14752dd6febfbbc4ecc7a6d27376d22127a5f4.tar.bz2 spack-4e14752dd6febfbbc4ecc7a6d27376d22127a5f4.tar.xz spack-4e14752dd6febfbbc4ecc7a6d27376d22127a5f4.zip |
add variant for a debug build (#10409)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/trilinos/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py index cff18b9be0..431ac6f8aa 100644 --- a/var/spack/repos/builtin/packages/trilinos/package.py +++ b/var/spack/repos/builtin/packages/trilinos/package.py @@ -71,6 +71,8 @@ class Trilinos(CMakePackage): description='Enable OpenMP') variant('shared', default=True, description='Enables the build of shared libraries') + variant('debug', default=False, + description='Enable runtime safety and debug checks') variant('xsdkflags', default=False, description='Compile using the default xSDK configuration') @@ -336,6 +338,8 @@ class Trilinos(CMakePackage): '-DTrilinos_ENABLE_CXX11:BOOL=ON', '-DBUILD_SHARED_LIBS:BOOL=%s' % ( 'ON' if '+shared' in spec else 'OFF'), + '-DTrilinos_ENABLE_DEBUG:BOOL=%s' % ( + 'ON' if '+debug' in spec else 'OFF'), # The following can cause problems on systems that don't have # static libraries available for things like dl and pthreads |