summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/boost/package.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py
index d646967da0..865f7090c4 100644
--- a/var/spack/repos/builtin/packages/boost/package.py
+++ b/var/spack/repos/builtin/packages/boost/package.py
@@ -201,6 +201,7 @@ class Boost(Package):
toolsets = {'g++': 'gcc',
'icpc': 'intel',
'clang++': 'clang',
+ 'armclang++': 'clang',
'xlc++': 'xlcpp',
'xlc++_r': 'xlcpp',
'pgc++': 'pgi'}
@@ -228,7 +229,12 @@ class Boost(Package):
def determine_bootstrap_options(self, spec, with_libs, options):
boost_toolset_id = self.determine_toolset(spec)
- options.append('--with-toolset=%s' % boost_toolset_id)
+
+ # Arm compiler bootstraps with 'gcc' (but builds as 'clang')
+ if spec.satisfies('%arm'):
+ options.append('--with-toolset=gcc')
+ else:
+ options.append('--with-toolset=%s' % boost_toolset_id)
options.append("--with-libraries=%s" % ','.join(with_libs))
if '+python' in spec: