summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelly (KT) Thompson <kgt@lanl.gov>2016-08-24 15:57:28 -0600
committerKelly (KT) Thompson <kgt@lanl.gov>2016-08-24 15:57:28 -0600
commit2ddaabed257e04c292b8e6e3954fff675b35907e (patch)
tree0049fd78f421163dea275845538a7b2bf0e368f9
parent062ff13da6e8b14a9689c77fc55c7ba2a73b02e8 (diff)
downloadspack-2ddaabed257e04c292b8e6e3954fff675b35907e.tar.gz
spack-2ddaabed257e04c292b8e6e3954fff675b35907e.tar.bz2
spack-2ddaabed257e04c292b8e6e3954fff675b35907e.tar.xz
spack-2ddaabed257e04c292b8e6e3954fff675b35907e.zip
+ Boost: fix recipe for intel compilers.
This is the same patch provided by PR #550, but rebased against the current develop branch. It also passes the flake8 checks.
-rw-r--r--var/spack/repos/builtin/packages/boost/package.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py
index 690a05a150..0d4ccc7ea3 100644
--- a/var/spack/repos/builtin/packages/boost/package.py
+++ b/var/spack/repos/builtin/packages/boost/package.py
@@ -23,7 +23,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
-import spack
import sys
import os
@@ -114,7 +113,8 @@ class Boost(Package):
description="Build single-threaded versions of libraries")
variant('icu_support', default=False,
description="Include ICU support (for regex/locale libraries)")
- variant('graph', default=False, description="Build the Boost Graph library")
+ variant('graph', default=False,
+ description="Build the Boost Graph library")
depends_on('icu', when='+icu_support')
depends_on('python', when='+python')
@@ -138,11 +138,15 @@ class Boost(Package):
def determine_toolset(self, spec):
if spec.satisfies("platform=darwin"):
return 'darwin'
+ else:
+ platform = 'linux'
toolsets = {'g++': 'gcc',
'icpc': 'intel',
'clang++': 'clang'}
+ if spec.satisfies('@1.47:'):
+ toolsets['icpc'] += '-' + platform
for cc, toolset in toolsets.iteritems():
if cc in self.compiler.cxx_names:
return toolset
@@ -160,16 +164,13 @@ class Boost(Package):
join_path(spec['python'].prefix.bin, 'python'))
with open('user-config.jam', 'w') as f:
- compiler_wrapper = join_path(spack.build_env_path, 'c++')
- f.write("using {0} : : {1} ;\n".format(boostToolsetId,
- compiler_wrapper))
if '+mpi' in spec:
f.write('using mpi : %s ;\n' %
join_path(spec['mpi'].prefix.bin, 'mpicxx'))
if '+python' in spec:
f.write('using python : %s : %s ;\n' %
- (spec['python'].version,
+ (spec['python'].version.up_to(2),
join_path(spec['python'].prefix.bin, 'python')))
def determine_b2_options(self, spec, options):
@@ -202,7 +203,6 @@ class Boost(Package):
multithreaded} must be enabled""")
options.extend([
- 'toolset=%s' % self.determine_toolset(spec),
'link=%s' % ','.join(linkTypes),
'--layout=tagged'])