-
Notifications
You must be signed in to change notification settings - Fork 335
--clean-buildtrees-after-build: Only clean on success #1655
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
--clean-buildtrees-after-build: Only clean on success #1655
Conversation
|
Fixing the log confusion I mentioned at the end of microsoft/vcpkg#45070 (comment)? 🙏 |
|
My assumption was/is that the buildtrees folder is cleared before a build is done. |
I have created #1657 |
BillyONeal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this just be the behavior always?
Not always. In my local builds, I do want to be able to compare the logs for different triplets. |
|
And afaik the buildtrees folder is needed if you want to step with the debugger into the lib and want code. |
Sorry, I mean, if someone uses |
BillyONeal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vicroms @ras0219-msft @JavierMatosD @AugP and I discussed today.
@BillyONeal The point is on failure we tell people to look in buildtrees which is meaningless if we deleted it.
@JavierMatosD "I actually stopped using [--clean-buildtrees-after-build] for that reason"
We would like the existing behavior of --clean-buildtrees-after-build to not clean when the build fails rather than adding a new switch.
a2c6e77 to
513698b
Compare
|
Sounds good. Have implemented that. |
BillyONeal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This helps debugging build failures since the buildtrees folder is not removed in that case.