[cfe-dev] trouble using scons with scan-build

John Smith lbalbalba at gmail.com
Tue Oct 16 11:20:07 PDT 2012


On Tue, Oct 16, 2012 at 7:37 PM, Jordan Rose <jordan_rose at apple.com> wrote:
>
> On Oct 16, 2012, at 10:33 , John Smith <lbalbalba at gmail.com> wrote:
>
>> On Tue, Oct 16, 2012 at 7:21 PM, Jordan Rose <jordan_rose at apple.com> wrote:
>>> Hi, John. Unfortunately, there are a LOT more environment variables being set by scan-build besides just CC and CXX -- it's the only way scan-build has to communicate with the ccc-analyzer processes that get launched for each file that's built. Is there a way to disable this environment-clearing behavior for a certain build?
>>>
>>> I think all of our environment variables start with "CCC_", so if you end up going the manual route you can just iterate through the whole environment and copy those over.
>>>
>>> Best,
>>> Jordan
>>>

Adding


env["ENV"].update(x for x in os.environ.items() if x[0].startswith("CCC_"))


Seems to solve the issue




More information about the cfe-dev mailing list