diff options
author | t-karatsu <49965247+t-karatsu@users.noreply.github.com> | 2019-08-01 20:29:41 +0900 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2019-08-01 13:29:41 +0200 |
commit | 9b03ab43ed229a0ca7cbf7ef12b8f0609c36d448 (patch) | |
tree | 0c06e044e16eecb56412eb1312acf14921a4a498 /var | |
parent | e628f1b4eb4cd9968b14c16018cf14276e74ad19 (diff) | |
download | spack-9b03ab43ed229a0ca7cbf7ef12b8f0609c36d448.tar.gz spack-9b03ab43ed229a0ca7cbf7ef12b8f0609c36d448.tar.bz2 spack-9b03ab43ed229a0ca7cbf7ef12b8f0609c36d448.tar.xz spack-9b03ab43ed229a0ca7cbf7ef12b8f0609c36d448.zip |
bdw-gc: add variant for Multithreading (#12223)
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 |