From 9b03ab43ed229a0ca7cbf7ef12b8f0609c36d448 Mon Sep 17 00:00:00 2001 From: t-karatsu <49965247+t-karatsu@users.noreply.github.com> Date: Thu, 1 Aug 2019 20:29:41 +0900 Subject: bdw-gc: add variant for Multithreading (#12223) --- var/spack/repos/builtin/packages/bdw-gc/package.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'var') 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 -- cgit v1.2.3-70-g09d2