-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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 SConstruct option 'xml' to request XML trace output #63724
Conversation
Is there a specific reason why you need a XML trace instead of using the already available compilation database in JSON format? ( |
Nope, probably no reason. I just wasted a lot of work :). Thanks. [edit: no I did not, phew] |
I'll come back if I can't make it work with the JSON that I didn't know about. |
The JSON file is only the equivalent of the |
0675baf
to
191252b
Compare
191252b
to
caee846
Compare
Withdrawn. It's easy enough to just apply the patch and probably there won't be many people using this going forward. |
Summary
This is a tool I added to SConstruct so that I could create XML of what was exactly was built with what options. This allows for analysis or external tooling.
It is very basic and possibly ugly, because I am no SCons expert. I won't be developing this any further, but it works fine in my tool chain, so I am offering it here in case it is useful to others. I will also be sharing my external build tool for running rapid rebuilds in Visual Studio that relies on this, but it is easy enough for me to just always merge this to my development branches, if you don't want to include it.
Instructions
Clean the build, so that everything will be built. Run
scons
with your usual options and addxml=true
. Redirect the output to a file if you want the entire log or| grep __BUILD_DATA_MAGIC_COOKIE__
to get a valid XML document.