bdw-gc: add variant for Multithreading (#12223)
This commit is contained in:
parent
e628f1b4eb
commit
9b03ab43ed
@ -19,6 +19,13 @@ class BdwGc(AutotoolsPackage):
|
|||||||
|
|
||||||
variant('libatomic-ops', default=True,
|
variant('libatomic-ops', default=True,
|
||||||
description='Use external libatomic-ops')
|
description='Use external libatomic-ops')
|
||||||
|
variant(
|
||||||
|
'threads',
|
||||||
|
default='none',
|
||||||
|
values=('none', 'posix', 'dgux386'),
|
||||||
|
multi=False,
|
||||||
|
description='Multithreading support'
|
||||||
|
)
|
||||||
|
|
||||||
depends_on('libatomic-ops', when='+libatomic-ops')
|
depends_on('libatomic-ops', when='+libatomic-ops')
|
||||||
|
|
||||||
@ -28,7 +35,8 @@ def configure_args(self):
|
|||||||
config_args = [
|
config_args = [
|
||||||
'--enable-static',
|
'--enable-static',
|
||||||
'--with-libatomic-ops={0}'.format(
|
'--with-libatomic-ops={0}'.format(
|
||||||
'yes' if '+libatomic-ops' in spec else 'no')
|
'yes' if '+libatomic-ops' in spec else 'no'),
|
||||||
|
"--enable-threads={0}".format(spec.variants['threads'].value)
|
||||||
]
|
]
|
||||||
|
|
||||||
return config_args
|
return config_args
|
||||||
|
Loading…
Reference in New Issue
Block a user