Repository navigation
[release/11.0-preview1] Source code updates from dotnet/dotnet - #1581
Merged
akoeplinger merged 1 commit intoFeb 6, 2026
Conversation
akoeplinger
approved these changes
Feb 6, 2026
akoeplinger
deleted the
darc-release/11.0-preview1-09329da8-0514-48bb-973d-f8abc5af9a44
branch
February 6, 2026 14:03
akoeplinger
pushed a commit
that referenced
this pull request
Jul 9, 2026
This adds support for using a prebuilt cache as an archive instead of building it from scratch every time. This solves multiple problems: - build speed on CI machines that have cold cache - instead of building the secondary cache every time, it can simply download it - effective support for multiple caches (#1581) - emscripten supports having multiple caches on its own, but it builds `thinlto`, `lto`, and other cache combinations on demand. This doesn't work in the Bazel world, where the cache needs to be frozen. - the current solution allowed building a secondary cache, but only with a single configuration - this allows the use of any archive that contain any emscripten cache - this PR does not handle how that cache is built - you can build it with embuilder, zip it and serve it from your server or whatever you want - secondary cache hermeticity problem - the current solution for secondary cache generated `emscripten_config` file that contained full path to the cache. - this was not hermetic as this path could be different on different machines - this PR calculates the cache path by using the same trick with environment variables, ensuring that `emscripten_config` file is always same, regardless of the machine - additionally, it ensures that the cache is provided as an input to the toolchain so that Bazel can correctly add it to the sandbox environment After applying this patch to our internal codebase, the regular builds of WASM code went down from 12-15 minutes to cca 30 seconds, regardless on which machine it runs, as long as remote cache is warm. --------- Co-authored-by: Copilot Autofix powered by AI <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This is a codeflow update. It may contain both source code changes from
the VMR
as well as dependency updates. Learn more here.
This pull request brings the following source code changes
From https://github.com/dotnet/dotnet
Updated Dependencies
Associated changes in source repos
Diff the source with this PR branch