Skip to content

Commit

Permalink
Fixed boost toolset detection
Browse files Browse the repository at this point in the history
  • Loading branch information
becker33 committed Aug 2, 2016
1 parent c678a9e commit 986b28f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions var/spack/repos/builtin/packages/boost/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,15 @@ def url_for_version(self, version):

def determine_toolset(self, spec):
if spec.satisfies("platform=darwin"):
return 'darwin'
if 'icpc' in self.compiler.cxx_names:
return 'intel-darwin'
else:
return 'darwin'

toolsets = {'g++': 'gcc',
'icpc': 'intel',
'clang++': 'clang'}
'icpc': 'intel-linux',
'clang++': 'clang',
'pgi++': 'pgi'}

for cc, toolset in toolsets.iteritems():
if cc in self.compiler.cxx_names:
Expand Down

0 comments on commit 986b28f

Please sign in to comment.