diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/bdw-gc/package.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/bdw-gc/package.py b/var/spack/repos/builtin/packages/bdw-gc/package.py index ef27b1d640..526dd28bee 100644 --- a/var/spack/repos/builtin/packages/bdw-gc/package.py +++ b/var/spack/repos/builtin/packages/bdw-gc/package.py @@ -19,6 +19,13 @@ class BdwGc(AutotoolsPackage): variant('libatomic-ops', default=True, 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') @@ -28,7 +35,8 @@ class BdwGc(AutotoolsPackage): config_args = [ '--enable-static', '--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 |