Boost logo

Boost :

Subject: [boost] PCH support for clang-linux (clang-darwin tester needed)
From: wash (admin_at_[hidden])
Date: 2011-02-13 01:55:12

Hash: SHA1

I have committed a patch which fixes Boost.Build for clang-linux. The
Boost.Build configuration for clang precompiled headers used a command line
invocation of clang which, to my knowledge, has never worked.

- -pch-use and -pch-create were the flags used, and no -o flag was placed before
the target output file. I cannot find a version of clang that ever supported
this syntax.

There are three major distributions of clang for Linux; LLVM/Clang itself
(source only), RPMs (source and binaries) and .debs (source and binaries). As
the existing Boost.Build implementation of PCH support for Clang does not seem
to by the clang versions shipped via any of these three mediums, I've junked
the old bjam actions entirely and replaced them with actions that work.

This fixs Boost.Math for clang on linux (previously clang-linux failed to
compile the Boost.Math shared libraries because of this). clang-darwin has been
fine because the PCH generators were disabled (I guess whoever did that forgot
to do the same for clang-linux). I am not going to move these changes over to
the clang-darwin toolset, because I do not have access to a darwin tester. If
someone on darwin is willing to test for me, please let me know and I'll
provide a patched version of clang-darwin.jam that should provide PCH support.

- --
Bryce Lelbach aka wash
Version: GnuPG v1.4.9 (GNU/Linux)


Boost list run by bdawes at, gregod at, cpdaniel at, john at