Re: adding text to compile line

Bill Deegan <[email protected]> Thu, 1 Feb 2024 19:33:53 -0800
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CAEyG4CE8c+s8cBUVsya8gqoN4Z3esyJmuW2B8AJgV3byzr469A@mail.gmail.com>
Dagg,

Interesting the CommandAction function to print *COMSTR calls subst with
SUBST_RAW.

If you're feeling adventurous, try changing these lines (around line 1039
in SCons/Action.py
from:
            if executor:
                c = env.subst(self.cmdstr, SUBST_RAW, executor=executor,
overrides=overrides)
            else:
                c = env.subst(self.cmdstr, SUBST_RAW, target, source,
overrides=overrides)
To
            if executor:
                c = env.subst(self.cmdstr, SUBST_CMD, executor=executor,
overrides=overrides)
            else:
                c = env.subst(self.cmdstr, SUBST_CMD, target, source,
overrides=overrides)

No need to do the replace() stuff in your env['LINKCOMSTR'] for the above.

I think this should do what we all expected in the first place..
(I can't think of any reason to leave the $( $)'s in the comstr  output..
well I could probably think of some corner cases, but most people wouldn't
want to see those I'd think.
-Bill

On Thu, Feb 1, 2024 at 5:11 PM Mats Wichmann <[email protected]> wrote:

> On 2/1/24 16:05, daggs via Scons-users wrote:
> > I'm not changing env['LINKCOM'], just env['LINKCOMSTR']
> > Dagg
>
> Well, the way printing of the "default" is handled is a little
> convoluted, we'll try to get a look at what would make sense to just
> slightly modify the output (well, I'll try to take a look, can't speak
> for others).
>
>
> _______________________________________________
> 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