Skip to content

Conversation

@autoantwort
Copy link
Contributor

This helps debugging build failures since the buildtrees folder is not removed in that case.

@dg0yt
Copy link
Contributor

dg0yt commented Apr 19, 2025

Fixing the log confusion I mentioned at the end of microsoft/vcpkg#45070 (comment)? 🙏

@autoantwort
Copy link
Contributor Author

My assumption was/is that the buildtrees folder is cleared before a build is done.

@autoantwort
Copy link
Contributor Author

autoantwort commented Apr 19, 2025

Fixing the log confusion I mentioned at the end of microsoft/vcpkg#45070 (comment)? 🙏

I have created #1657

Copy link
Member

@BillyONeal BillyONeal left a 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?

@dg0yt
Copy link
Contributor

dg0yt commented Apr 23, 2025

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.

@autoantwort
Copy link
Contributor Author

autoantwort commented Apr 23, 2025

And afaik the buildtrees folder is needed if you want to step with the debugger into the lib and want code.

@BillyONeal
Copy link
Member

Not always. In my local builds, I do want to be able to compare the logs for different triplets.

Sorry, I mean, if someone uses --clean-buildtrees-after-build, it seems like we should only actually do the 'cleaning' on success.

Copy link
Member

@BillyONeal BillyONeal left a 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.

@autoantwort autoantwort force-pushed the feature/buildtree-on-failure branch from a2c6e77 to 513698b Compare April 25, 2025 20:25
@autoantwort autoantwort changed the title Add option to clean buildtrees folder only on success --clean-buildtrees-after-build: Only clean on success Apr 25, 2025
@autoantwort
Copy link
Contributor Author

Sounds good. Have implemented that.

Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@BillyONeal BillyONeal merged commit d200136 into microsoft:main Apr 25, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants