summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorRob Latham <robl@mcs.anl.gov>2020-01-14 11:54:38 -0600
committerAdam J. Stewart <ajstewart426@gmail.com>2020-01-14 11:54:38 -0600
commit4c65324084116d8a89e72069fe8246f8bb68205d (patch)
treec134ab35b1e779f7b0b382af5a3f01bf712ef791 /var
parent6d8ec8890a5fe847d0dc71d79bf8c8b9e36386f5 (diff)
downloadspack-4c65324084116d8a89e72069fe8246f8bb68205d.tar.gz
spack-4c65324084116d8a89e72069fe8246f8bb68205d.tar.bz2
spack-4c65324084116d8a89e72069fe8246f8bb68205d.tar.xz
spack-4c65324084116d8a89e72069fe8246f8bb68205d.zip
Sometimes debugging symbols are helpful (#14452)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/argobots/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/argobots/package.py b/var/spack/repos/builtin/packages/argobots/package.py
index 7bb48894c4..11c8febea6 100644
--- a/var/spack/repos/builtin/packages/argobots/package.py
+++ b/var/spack/repos/builtin/packages/argobots/package.py
@@ -27,6 +27,7 @@ class Argobots(AutotoolsPackage):
version("1.0a1", sha256="bef93e06026ddeba8809474923176803e64d08e1425672cd7c5b424c797d5d9d")
variant("valgrind", default=False, description="Enable Valgrind")
+ variant("debug", default=False, description="Compiled with debugging symbols")
depends_on("m4", type=("build"), when="@master")
depends_on("autoconf", type=("build"), when="@master")
@@ -41,4 +42,9 @@ class Argobots(AutotoolsPackage):
else:
args.append('--disable-valgrind')
+ if '+debug' in self.spec:
+ args.append('--enable-debug=yes')
+ else:
+ args.append('--disable-debug')
+
return args