diff options
author | Axel Huebl <axel.huebl@plasma.ninja> | 2017-01-15 11:38:14 +0100 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-01-15 02:38:14 -0800 |
commit | 3f7b4ab7aa7a31b421b6b392701435020c6fd6eb (patch) | |
tree | 001159af84d422cdfb035164781f87023d822269 | |
parent | 0d367bbd203eab4cdde78cfe6b81a8a5e61a1572 (diff) | |
download | spack-3f7b4ab7aa7a31b421b6b392701435020c6fd6eb.tar.gz spack-3f7b4ab7aa7a31b421b6b392701435020c6fd6eb.tar.bz2 spack-3f7b4ab7aa7a31b421b6b392701435020c6fd6eb.tar.xz spack-3f7b4ab7aa7a31b421b6b392701435020c6fd6eb.zip |
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.
-rw-r--r-- | var/spack/repos/builtin/packages/boost/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
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): |