Add a new +clanglibcpp option for Boost (#5708)
* Add a new +clanglibcpp option for Boost Currently, the compile of boost with clang will use the stdlibc++. This patch adds an optional flag to use clangs included libc++ instead. * Linting Fix long lines and white space errors
This commit is contained in:
parent
5f592fb911
commit
ffc4c31b82
@ -135,6 +135,8 @@ class Boost(Package):
|
||||
description="Augment library names with build options")
|
||||
variant('versionedlayout', default=False,
|
||||
description="Augment library layout with versioned subdirs")
|
||||
variant('clanglibcpp', default=False,
|
||||
description='Compile with clang libc++ instead of libstdc++')
|
||||
|
||||
depends_on('icu4c', when='+icu')
|
||||
depends_on('python', when='+python')
|
||||
@ -290,6 +292,10 @@ def determine_b2_options(self, spec, options):
|
||||
# https://svn.boost.org/trac/boost/ticket/12496
|
||||
if spec.satisfies('%clang'):
|
||||
options.extend(['pch=off'])
|
||||
if '+clanglibcpp' in spec:
|
||||
options.extend(['toolset=clang',
|
||||
'cxxflags="-stdlib=libc++"',
|
||||
'linkflags="-stdlib=libc++"'])
|
||||
|
||||
return threadingOpts
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user