Add gdb TUI variant (#18459)
This commit is contained in:
parent
5c94827201
commit
bf2ded5269
1 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,7 @@ class Gdb(AutotoolsPackage, GNUMirrorPackage):
|
||||||
variant('quad', default=False, description='Enable quad')
|
variant('quad', default=False, description='Enable quad')
|
||||||
variant('gold', default=False, description='Enable gold linker')
|
variant('gold', default=False, description='Enable gold linker')
|
||||||
variant('ld', default=False, description='Enable ld')
|
variant('ld', default=False, description='Enable ld')
|
||||||
|
variant('tui', default=False, description='Enable tui')
|
||||||
|
|
||||||
# Required dependency
|
# Required dependency
|
||||||
depends_on('texinfo', type='build')
|
depends_on('texinfo', type='build')
|
||||||
|
@ -47,6 +48,7 @@ class Gdb(AutotoolsPackage, GNUMirrorPackage):
|
||||||
depends_on('python', when='+python')
|
depends_on('python', when='+python')
|
||||||
depends_on('xz', when='+xz')
|
depends_on('xz', when='+xz')
|
||||||
depends_on('source-highlight', when='+source-highlight')
|
depends_on('source-highlight', when='+source-highlight')
|
||||||
|
depends_on('ncurses', when='+tui')
|
||||||
|
|
||||||
build_directory = 'spack-build'
|
build_directory = 'spack-build'
|
||||||
|
|
||||||
|
@ -69,4 +71,7 @@ def configure_args(self):
|
||||||
if '+ld' in self.spec:
|
if '+ld' in self.spec:
|
||||||
args.append('--enable-ld')
|
args.append('--enable-ld')
|
||||||
|
|
||||||
|
if '+tui' in self.spec:
|
||||||
|
args.append('--enable-tui')
|
||||||
|
|
||||||
return args
|
return args
|
||||||
|
|
Loading…
Reference in a new issue