dotnet / source-build

A repository to track efforts to produce a source tarball of the .NET Core SDK and all its components
MIT License
266 stars 132 forks source link

Consider using live versions of coreclr-tools #3253

Open crummel opened 1 year ago

crummel commented 1 year ago

The runtime repo includes a build subset that will only build ILAsm/ILDasm and associated tools. This subset should have no dependencies other than a .NET SDK and C++ compiler, so we should be able to build it before anything else and then use that built version in the build rather than using the previously-source-built version. This would help with both reduction of previously-source-built size and bootstrapping new distros and platforms.

MichaelSimons commented 1 year ago

[Triage] This would not affect the previously-source-build size because we include all built packages. Customizing this list to the minimal required is going to be a maintenance issue and could break the build if a new dependency is added on a package that doesn't exist in previously-source-build.

As stated this would be useful for onboarding new distros and platforms.

MichaelSimons commented 1 year ago

[Triage] There may be some nuances here with building a repo multiple times in the product build - e.g. conflicting intermediates.