[Scons-users] PCH target file

Bill Deegan bill at baddogconsulting.com
Sun Aug 23 11:41:35 EDT 2015


Ora,

Are you using VariantDir's (Or variant_dir)?
If so, try using the variantDir's copy of the source file for the pch?

-Bill

On Sun, Aug 23, 2015 at 11:14 AM, Ora <orshalev at gmail.com> wrote:

> Each project is built in a different directory.
>
> My problem is that the PCH builder doesn't seem to accept a 'target', and
> automatically creates the file in the source directory.
>
> I'm currently calling it with the source file as input.  PCH(source_file).
>
> When I tried sending PCH (target=target_file, source=source_file), SCons
> failed  ('NoneType' object has no attribute 'side_effect').
>
> Is there a way to specify the target?
>
> Thanks,
> Ora
>
>
>
>
> On Thu, Aug 20, 2015 at 11:25 PM, Bill Deegan <bill at baddogconsulting.com>
> wrote:
>
>> Ora,
>>
>> Seems like you need to have a different output file name for each
>> project.. and/or build the output file in a variant dir or a different
>> directory.
>>
>> -Bill
>>
>> On Thu, Aug 20, 2015 at 7:51 AM, Ora <orshalev at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Is it possible to specify the output target in the PCH() builder?
>>>
>>> My problem is as such:
>>>
>>> I have several projects which use the same pre-compiled header file, but
>>> compile it using different command line parameters. Currently, the PCH file
>>> is being output into a common directory, and is therefore recompiled every
>>> time I switch projects.
>>>
>>>
>>> Thanks,
>>> Ora
>>>
>>>
>>> _______________________________________________
>>> Scons-users mailing list
>>> Scons-users at scons.org
>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>
>>>
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150823/715d8f40/attachment.html>


More information about the Scons-users mailing list