Add gdb TUI variant (#18459)

This commit is contained in:
Weston Ortiz 2020-09-02 08:59:19 -06:00 committed by GitHub
parent 5c94827201
commit bf2ded5269
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 @@ def configure_args(self):
if '+ld' in self.spec:
args.append('--enable-ld')
if '+tui' in self.spec:
args.append('--enable-tui')
return args