[Scons-users] PCH target file

Ora orshalev at gmail.com
Sun Aug 23 11:59:32 EDT 2015


I am not using a variant dir.  I send the targets explicitly to the
builders.

If the builder really doesn't accept a target, I'd rather build my own and
send the target as input.

I'd just like to ensure I'm not overlooking anything before I do that.

Ora

On Sun, Aug 23, 2015 at 6:41 PM, Bill Deegan <bill at baddogconsulting.com>
wrote:

> 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
>>
>>
>
> _______________________________________________
> 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/1686f254/attachment.html>


More information about the Scons-users mailing list