Skip to content

Conversation

@jaredpar
Copy link
Member

@jaredpar jaredpar commented Aug 5, 2022

Before bootstrap failures would occur in a target after CoreCompile.
These failures were then repeated for all subsequent Compilation
events that occurred after. In certain cases it made it hard to track
down which compile event actually hit the error. Now it's very straight
forward.

This has the added bonus that the build fails fast when this happens vs.
continuing on and making the log files even bigger.

Before bootstrap failures would occur in a target after `CoreCompile`.
These failures were then repeated for all subsequent `Compilation`
events that occurred after. In certain cases it made it hard to track
down which compile event actually hit the error. Now it's very straight
forward.

This has the added bonus that the build fails fast when this happens vs.
continuing on and making the log files even bigger.
@jaredpar jaredpar requested a review from a team as a code owner August 5, 2022 17:42
@jaredpar
Copy link
Member Author

jaredpar commented Aug 5, 2022

@dotnet/roslyn-compiler PTAL. Making bootstrap failures easier to debug by failing compilation fast when possible.

Copy link
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

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

LGTM (commit 2). I think it would also be good to check in a small doc to docs/Compilers about how you see this log.

@jaredpar
Copy link
Member Author

jaredpar commented Aug 5, 2022

I think it would also be good to check in a small doc to docs/Compilers about how you see this log.

That is a good idea. I will work on that.

// See the LICENSE file in the project root for more information.

#if !BOOTSTRAP
#if BOOTSTRAP
Copy link
Member

Choose a reason for hiding this comment

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

You didn't want the squirrel?

Copy link
Member Author

Choose a reason for hiding this comment

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

Already have it 😄

@RikkiGibson RikkiGibson self-assigned this Aug 8, 2022
@jaredpar jaredpar merged commit 54aeea4 into dotnet:main Aug 8, 2022
@jaredpar jaredpar deleted the ff branch August 8, 2022 23:01
@ghost ghost added this to the Next milestone Aug 8, 2022
@dibarbet dibarbet modified the milestones: Next, 17.4 P2 Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants