Clang & Boost: No PCH (#2827)
Although it hurts a little, officially pre-compiled headers in boost are only supported for gcc & msvc and the latest clang releases still fail to build boost with it. Therefore, I disabled building those to get boost build with clang 3.9.0 on an Ubuntu 14.04 (x86). Links to documentation and boost bug reports are inline, so people can later on check if they still apply. Seems just to be a bug in `Boost.Build` that tries to set `-o` with multiple output files.
This commit is contained in:
@@ -254,6 +254,13 @@ def determine_b2_options(self, spec, options):
|
||||
'toolset=%s' % self.determine_toolset(spec)
|
||||
])
|
||||
|
||||
# clang is not officially supported for pre-compiled headers
|
||||
# and at least in clang 3.9 still fails to build
|
||||
# http://www.boost.org/build/doc/html/bbv2/reference/precompiled_headers.html
|
||||
# https://svn.boost.org/trac/boost/ticket/12496
|
||||
if spec.satisfies('%clang'):
|
||||
options.extend(['pch=off'])
|
||||
|
||||
return threadingOpts
|
||||
|
||||
def add_buildopt_symlinks(self, prefix):
|
||||
|
Reference in New Issue
Block a user