Re: adding text to compile line

daggs via Scons-users <[email protected]> Wed, 31 Jan 2024 21:24:36 +0100
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <trinity-52526f62-b85a-46fc-9d5c-e08e0e7c39be-1706732676374@3c-app-mailcom-bs10>
now I have some lines with $( and other with $)

weird...

Sent: Tuesday, January 30, 2024 at 11:03 PM

From: "Bill Deegan" <[email protected]>

To: "SCons users mailing list" <[email protected]>

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 <[email protected] > 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" <[email protected] >

> *To:* "SCons users mailing list" <[email protected] >

> *Cc:* "daggs" <[email protected] >

> *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

> <[email protected] <mailto:[email protected] >> 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

[email protected]

https://pairlist4.pair.net/mailman/listinfo/scons-users

_______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users