[Scons-users] adding text to compile line
Bill Deegan
bill at baddogconsulting.com
Thu Feb 1 16:53:45 EST 2024
do you explicitly set env['LINKCOM'], or are you using whatever SCons is
setting it by default?
On Thu, Feb 1, 2024 at 9:39 AM daggs <daggs at gmx.com> wrote:
> what do you mean by "default LINKCOM"?
>
>
> *Sent:* Thursday, February 01, 2024 at 6:27 PM
> *From:* "Bill Deegan" <bill at baddogconsulting.com>
> *To:* "daggs" <daggs at gmx.com>
> *Cc:* "SCons users mailing list" <scons-users at scons.org>
> *Subject:* Re: [Scons-users] adding text to compile line
> You didn't really answer my question.
> Are you using the default LINKCOM?
> Or are you setting it yourself and then using the logic we've been
> discussing to have a specific LINKCOMSTR?
>
> Can you share your LINKCOM setting?
>
> On Wed, Jan 31, 2024 at 11:05 PM daggs <daggs at gmx.com> wrote:
>
>> I don't want to change the line, I just want to append a prefix so when I
>> save the output to log, I can optimize the search and look at that line
>> only with the predefined prefix
>>
>> Dagg
>>
>>
>> *Sent:* Thursday, February 01, 2024 at 3:17 AM
>> *From:* "Bill Deegan" <bill at baddogconsulting.com>
>> *To:* "SCons users mailing list" <scons-users at scons.org>
>> *Cc:* "daggs" <daggs at gmx.com>
>> *Subject:* Re: [Scons-users] adding text to compile line
>> Are you setting LINKCOM yourself? Or using the defaults?
>>
>> On Wed, Jan 31, 2024 at 12:24 PM daggs via Scons-users <
>> scons-users at scons.org> wrote:
>>
>>> now I have some lines with $( and other with $)
>>>
>>> weird...
>>> *Sent:* Tuesday, January 30, 2024 at 11:03 PM
>>> *From:* "Bill Deegan" <bill at baddogconsulting.com>
>>> *To:* "SCons users mailing list" <scons-users at scons.org>
>>> *Subject:* Re: [Scons-users] adding text to compile line
>>> Hmm.. I think the comstr's don't eliminate the $('s
>>> so you'd need to do
>>>
>>> env['LINKCOMSTR'] = "[" + label + "]: " +
>>> env['LINKCOM'].replace('$(','',).replace('$)','')
>>>
>>> I think that should work?
>>>
>>> On Tue, Jan 30, 2024 at 11:57 AM Mats Wichmann <mats at wichmann.us> wrote:
>>>
>>>> On 1/30/24 12:49, daggs via Scons-users wrote:
>>>> > still the same output
>>>> > *Sent:* Monday, January 29, 2024 at 4:12 AM
>>>> > *From:* "Bill Deegan" <bill at baddogconsulting.com>
>>>> > *To:* "SCons users mailing list" <scons-users at scons.org>
>>>> > *Cc:* "daggs" <daggs at gmx.com>
>>>> > *Subject:* Re: [Scons-users] adding text to compile line
>>>> > Try using:
>>>> > env['LINKCOMSTR'] =f"[{label}]: $LINKCOM"
>>>> > ?
>>>> > On Sun, Jan 28, 2024 at 12:04 AM daggs via Scons-users
>>>> > <scons-users at scons.org <mailto:scons-users at scons.org>> wrote:
>>>> >
>>>> > Greetings.
>>>> > question, I've defined the str as such: env['LINKCOMSTR'] = "[" +
>>>> > label + "]: " + env['LINKCOM']
>>>> > and now I'm seeing $( and $) added to prints, is there any way to
>>>> > remove them?
>>>> > Thanks,
>>>>
>>>>
>>>> The $( $) is a special marker sequence to indicate parts of a command
>>>> line that should not be considered when computing the build action hash,
>>>> but should be issued in the actual command. The subst function should
>>>> eliminate those, so it's a bit surprising you're seeing them.
>>>> _______________________________________________
>>>> 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/20240201/a4ed84ac/attachment.htm>
More information about the Scons-users
mailing list