summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/paraview/package.py4
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