[Scons-users] adding text to compile line

Mats Wichmann mats at wichmann.us
Tue Jan 30 14:56:53 EST 2024


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.


More information about the Scons-users mailing list