Add --make-repro-path option to crossgen2 (#57543)
authorDavid Wrighton <davidwr@microsoft.com>
Tue, 17 Aug 2021 19:42:07 +0000 (12:42 -0700)
committerGitHub <noreply@github.com>
Tue, 17 Aug 2021 19:42:07 +0000 (12:42 -0700)
commitd489eea73dead30f9afd194abc871832c7624129
treefae417e961699e36c35acc91ee552024783b1045
parent397b0fedd2a58c0cfa18419b24cc918579340a77
Add --make-repro-path option to crossgen2 (#57543)

- This is used to create repro packages for customer discovered issues with CrossGen2
- Customers will use this by setting the PublishCrossGen2ExtraArgs property to something like `--make-repro-path:c:\repro\crossgen2repro`
- Then the build will run, and produce zip files in the specified directory, one for each crossgen2 run that occurs during that build.
- Hopefully, then it is straightforward to package the failure up and send it in.

In addition, this tech can be used to transfer a full set of repro details from a Unix to Windows machine for easier debugging.
src/coreclr/tools/aot/crossgen2/CommandLineOptions.cs
src/coreclr/tools/aot/crossgen2/Properties/Resources.resx