From 4e14752dd6febfbbc4ecc7a6d27376d22127a5f4 Mon Sep 17 00:00:00 2001 From: Cameron Smith Date: Sat, 26 Jan 2019 12:42:24 -0500 Subject: add variant for a debug build (#10409) --- var/spack/repos/builtin/packages/trilinos/package.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'var') 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 -- cgit v1.2.3-70-g09d2