diff options
author | Weston Ortiz <weston@wortiz.com> | 2020-09-02 08:59:19 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-02 09:59:19 -0500 |
commit | bf2ded526995251e33782a44d26f2bd628eaeef3 (patch) | |
tree | 4250017609b87d94f46b7d891f971294fbb2417f /var | |
parent | 5c948272016808e2b7b5e4625d3db95f6cb036fc (diff) | |
download | spack-bf2ded526995251e33782a44d26f2bd628eaeef3.tar.gz spack-bf2ded526995251e33782a44d26f2bd628eaeef3.tar.bz2 spack-bf2ded526995251e33782a44d26f2bd628eaeef3.tar.xz spack-bf2ded526995251e33782a44d26f2bd628eaeef3.zip |
Add gdb TUI variant (#18459)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/gdb/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gdb/package.py b/var/spack/repos/builtin/packages/gdb/package.py index bef6540a30..90146da14e 100644 --- a/var/spack/repos/builtin/packages/gdb/package.py +++ b/var/spack/repos/builtin/packages/gdb/package.py @@ -39,6 +39,7 @@ class Gdb(AutotoolsPackage, GNUMirrorPackage): variant('quad', default=False, description='Enable quad') variant('gold', default=False, description='Enable gold linker') variant('ld', default=False, description='Enable ld') + variant('tui', default=False, description='Enable tui') # Required dependency depends_on('texinfo', type='build') @@ -47,6 +48,7 @@ class Gdb(AutotoolsPackage, GNUMirrorPackage): depends_on('python', when='+python') depends_on('xz', when='+xz') depends_on('source-highlight', when='+source-highlight') + depends_on('ncurses', when='+tui') build_directory = 'spack-build' @@ -69,4 +71,7 @@ class Gdb(AutotoolsPackage, GNUMirrorPackage): if '+ld' in self.spec: args.append('--enable-ld') + if '+tui' in self.spec: + args.append('--enable-tui') + return args |