Re: Request help on the usage of scons

Bill Deegan <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CAEyG4CEy2DTxskiXDezeVurHK3op1-voi37Sre9_JTZu0KwozQ@mail.gmail.com>
Glad to have helped!
-Bill

On Wed, Sep 14, 2022 at 9:24 PM David Zhu via Scons-users <
[email protected]> wrote:

> Thanks @Bill Deegan <[email protected]>, @Mats Wichmann
> <[email protected]> and @Lan Yang <[email protected]>
>
> I’ve got the solution with your hints.
>
> In my project, the ‘PRINT_CMD_LINE_FUNC’ is redefined and it can be set to
> default with a personalized flag.
>
>
>
> Best Regards,
>
> David
>
>
>
> *From: *Scons-users <[email protected]> on behalf of Mats
> Wichmann <[email protected]>
> *Date: *Tuesday, September 13, 2022 at 11:01 PM
> *To: *[email protected] <[email protected]>
> *Subject: *Re: [Scons-users] Request help on the usage of scons
>
> On 9/13/22 08:31, Bill Deegan wrote:
> > By default SCons will output the raw command.
> > If the build system your using doesn't then it has changed that from the
> > default.
> >
> >>     Dear scons community,
> >>
> >>     Is there any way to print the detailed information of the final raw
> >>     command line when scons is building a target?
>
> ... which, in fact, your project does.  You would be looking for the
> various *COMSTR strings, which control the printing for various build
> components, if defined - else the default, as Bill says, is to echo the
> whole command line.
>
> $ git grep COMSTR
> tools/building.py:            ARCOMSTR = 'AR $TARGET',
> tools/building.py:            ASCOMSTR = 'AS $TARGET',
> tools/building.py:            ASPPCOMSTR = 'AS $TARGET',
> tools/building.py:            CCCOMSTR = 'CC $TARGET',
> tools/building.py:            CXXCOMSTR = 'CXX $TARGET',
> tools/building.py:            LINKCOMSTR = 'LINK $TARGET'
>
>
> You could temporarily comment out those settings, and you should get a
> full printout.  Longer-term, there are some techniques you can use to
> set them conditionally - you could arrange to skip setting them if some
> predefined debug option or flag were given on the command line, but no
> need to worry about that at the moment.
>
>
>
> _______________________________________________
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.