From 3f7b4ab7aa7a31b421b6b392701435020c6fd6eb Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Sun, 15 Jan 2017 11:38:14 +0100 Subject: 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. --- var/spack/repos/builtin/packages/boost/package.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py index c31e5fc9df..738e8a0e35 100644 --- a/var/spack/repos/builtin/packages/boost/package.py +++ b/var/spack/repos/builtin/packages/boost/package.py @@ -254,6 +254,13 @@ class Boost(Package): '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): -- cgit v1.2.3-60-g2f50