[Scons-users] Depending on a file argument to the compiler
William Blevins
wblevins001 at gmail.com
Fri Oct 31 23:16:27 EDT 2014
+1 for Bill's answer
If you need to do this operation all over the place, then an emitter
wrapper makes the most sense.
V/R,
William
On Fri, Oct 31, 2014 at 1:35 PM, Bill Deegan <bill at baddogconsulting.com>
wrote:
> 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
>>
>>
>
> _______________________________________________
> 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/d939db10/attachment-0001.html>
More information about the Scons-users
mailing list