boost: fix cxxstd=default (#8438)

This commit is contained in:
Denis Davydov 2018-06-11 17:31:27 +02:00 committed by Adam J. Stewart
parent 4ec3cb1ddb
commit d943754e92

View File

@ -329,7 +329,9 @@ def determine_b2_options(self, spec, options):
# 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: