[Scons-users] adding text to compile line
Bill Deegan
bill at baddogconsulting.com
Thu Feb 1 22:33:53 EST 2024
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 <mats at wichmann.us> 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
> 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/592c084c/attachment.htm>
More information about the Scons-users
mailing list