diff options
author | Billae <65948826+Billae@users.noreply.github.com> | 2021-04-19 18:52:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-19 12:52:26 -0400 |
commit | 8fce9bef7b89aa3af73c497805af93d500c0bafc (patch) | |
tree | 2339f69cd210c7621e582e8539f83fd31bf2eedb | |
parent | c144222d54bc0436c37be19c463474efbe085e17 (diff) | |
download | spack-8fce9bef7b89aa3af73c497805af93d500c0bafc.tar.gz spack-8fce9bef7b89aa3af73c497805af93d500c0bafc.tar.bz2 spack-8fce9bef7b89aa3af73c497805af93d500c0bafc.tar.xz spack-8fce9bef7b89aa3af73c497805af93d500c0bafc.zip |
add debug variant for paraview (#22900)
* add debug variant for paraview
* add advanced_debug variant to set optionnal debug flags
Co-authored-by: Billae <eloise.billae@gmail.com>
-rw-r--r-- | var/spack/repos/builtin/packages/paraview/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/paraview/package.py b/var/spack/repos/builtin/packages/paraview/package.py index 189c86771a..0fb777133d 100644 --- a/var/spack/repos/builtin/packages/paraview/package.py +++ b/var/spack/repos/builtin/packages/paraview/package.py @@ -55,6 +55,7 @@ class Paraview(CMakePackage, CudaPackage): values=('native', 'fermi', 'kepler', 'maxwell', 'pascal', 'volta', 'turing', 'ampere', 'all', 'none'), description='CUDA architecture') + variant('advanced_debug', default=False, description="Enable all other debug flags beside build_type, such as VTK_DEBUG_LEAK") conflicts('+python', when='+python3') # Python 2 support dropped with 5.9.0 @@ -397,4 +398,7 @@ class Paraview(CMakePackage, CudaPackage): ) ) + if '+advanced_debug' in spec: + cmake_args.append('-DVTK_DEBUG_LEAKS:BOOL=ON') + return cmake_args |