Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug output showing sconscript being processed? #4386

Open
mwichmann opened this issue Jul 26, 2023 · 1 comment
Open

Add debug output showing sconscript being processed? #4386

mwichmann opened this issue Jul 26, 2023 · 1 comment

Comments

@mwichmann
Copy link
Collaborator

Filed to capture a thread here:

https://stackoverflow.com/questions/76520575/scons-overriding-sconscript-function-to-get-a-list-all-loaded-sconscripts

Should one wish to see the scripts being processed, there's not a particularly clean way to set this up, due to the way things get evaluated: hooking the SConscript function via a decorator ends up with references to things unavailable at the time. It would, however, be easy for SCons itself to provide this information, perhaps enabled by a debug flag. That is, it could optionally go from

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: done reading SConscript files.
scons: Building targets ...
...
scons: done building targets.

to

scons: Reading SConscript files ...
Reading src/SConscript
Reading src/lib/network/SConscript
...
scons: done reading SConscript files.
...
@mwichmann mwichmann changed the title Debug output showing sconscript being processed Add debug output showing sconscript being processed? Jul 26, 2023
@mwichmann
Copy link
Collaborator Author

Grrr, closed in error - wrong browser tab. Going to remove the previous close comment so github doesn't link this to a PR it has no relation to.

@mwichmann mwichmann reopened this Sep 1, 2023
@mwichmann mwichmann reopened this Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant