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


-----BEGIN PGP SIGNED MESSAGE-----
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
boost-spirit.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAk1XgFAACgkQ9cB/V3/s9Ez65ACfXxWcm6v5v/P6UXeCcsOmqSXJ
uLMAoJHkhxA/4w3CM53ZUDVc8d7rwyI7
=AN6v
-----END PGP SIGNATURE-----


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk