[Scons-users] Depending on a file argument to the compiler

Bill Deegan bill at baddogconsulting.com
Fri Oct 31 13:35:47 EDT 2014


It's not the source files that depend on the file, its the object files
generated for them.
Likely you're better off writing an emitter which calls the original
emitters and adds your file.

-Bill

On Fri, Oct 31, 2014 at 10:16 AM, Andrew C. Morrow <
andrew.c.morrow at gmail.com> wrote:

>
> I'd prefer to use Depends rather than write an emitter, but I don't see
> how I can compactly express that. I don't want to need to explicitly say
> 'env.Depends' for every list of source files, especially given that the
> dependency on the blacklist file is conditional (only when clang is in
> play, etc.)
>
>
> On Fri, Oct 31, 2014 at 12:37 PM, Bill Deegan <bill at baddogconsulting.com>
> wrote:
>
>> Andrew,
>>
>> You could use Depends(), or write a new emitter which adds it to the
>> source list and replace the emitter used by the c and c++ compiler..
>> (Off the top of my head)
>> -Bill
>>
>> On Fri, Oct 31, 2014 at 9:06 AM, Andrew C. Morrow <
>> andrew.c.morrow at gmail.com> wrote:
>>
>>>
>>> If I have an ASAN blacklist file (see
>>> http://clang.llvm.org/docs/AddressSanitizer.html#blacklist and
>>> http://clang.llvm.org/docs/SanitizerSpecialCaseList.html) that I pass
>>> to the compiler with -fsanitize-blacklist=<file>, how can I express the
>>> fact that all object files now depend on that file? If I fail to do so,
>>> changes to that file will not trigger a recompile as they should.
>>>
>>> Thanks,
>>> Andrew
>>>
>>>
>>> _______________________________________________
>>> 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/20141031/a3ba0e6c/attachment.html>


More information about the Scons-users mailing list