|
Boost-Build : |
Subject: Re: [Boost-build] Problem with Intel compiler and pch support
From: John Maddock (john_at_[hidden])
Date: 2008-10-26 06:19:46
Vladimir Prus wrote:
>>> * Intel changes the name of the pch file to have a ".pchi" file
>>> extension so dependency checking is broken and the pch gets
>>> regenerated every time bjam is run, which in turn causes the whole
>>> project to rebuild :-(
>>
>> Does adding:
>>
>> type.set-generated-target-suffix PCH : <toolset>intel
>> <target-os>windows : pchi ;
>>
>> to intel-win.jam fixes this problem?
Almost.... unfortunately it appears that regardless of whatever name you
specify for the pch file Intel appends an "i" to the name, so now it
generates a file with the .pchii extension and so dependency checking still
fails :-(
>>> * Intel doesn't support the -Yl option, so you get a warning
>>> emitted when building the pch
>>
>> Can you copy-paste the compile-c-c++-pch and compile-c-c++-pch-s
>> actions from msvc.jam to intel-win.jam and remove the -Yl option?
Hmm, I put those at the end of the intel-win.jam file, and they appear to
not get called as I'm still seeing the warning?
Ah, adding the get-rspline and compile.c++.pch rules as well does cause the
overrided actions to get called, but with apparently invalid arguments
because the pch file no longer compiles: the generated .cpp file contains
just
#include
with no file name specified.
Any ideas?
Thanks, John.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk