summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2018-06-11 17:31:27 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2018-06-11 10:31:27 -0500
commitd943754e923a2c63017fa42519cabcef7dfca4aa (patch)
tree88d684341eaff60217dfff6c738d2247e4e40bcc
parent4ec3cb1ddb08e14ba3c2ba169b4c5c47c779740a (diff)
downloadspack-d943754e923a2c63017fa42519cabcef7dfca4aa.tar.gz
spack-d943754e923a2c63017fa42519cabcef7dfca4aa.tar.bz2
spack-d943754e923a2c63017fa42519cabcef7dfca4aa.tar.xz
spack-d943754e923a2c63017fa42519cabcef7dfca4aa.zip
boost: fix cxxstd=default (#8438)
-rw-r--r--var/spack/repos/builtin/packages/boost/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py
index db72c06212..cc774b927b 100644
--- a/var/spack/repos/builtin/packages/boost/package.py
+++ b/var/spack/repos/builtin/packages/boost/package.py
@@ -329,7 +329,9 @@ class Boost(Package):
# Deal with C++ standard.
if spec.satisfies('@1.66:'):
- options.append('cxxstd={0}'.format(spec.variants['cxxstd'].value))
+ if spec.variants['cxxstd'].value != 'default':
+ options.append('cxxstd={0}'.format(
+ spec.variants['cxxstd'].value))
else: # Add to cxxflags for older Boost.
flag = self.cxxstd_to_flag(spec.variants['cxxstd'].value)
if flag: