Skip to content

[release/11.0-preview1] Source code updates from dotnet/dotnet - #1581

Merged
akoeplinger merged 1 commit into
release/11.0-preview1from
darc-release/11.0-preview1-09329da8-0514-48bb-973d-f8abc5af9a44
Feb 6, 2026
Merged

akoeplinger merged 1 commit into
release/11.0-preview1from
darc-release/11.0-preview1-09329da8-0514-48bb-973d-f8abc5af9a44

Conversation

@dotnet-maestro

@dotnet-maestro dotnet-maestro Bot commented Feb 5, 2026

Copy link
Copy Markdown

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
darc vmr diff --name-only https://github.com/dotnet/dotnet:87bc0b04e21d786669142109a5128c95618b75ed..https://github.com/dotnet/emsdk:darc-release/11.0-preview1-09329da8-0514-48bb-973d-f8abc5af9a44

@akoeplinger
akoeplinger merged commit fface8a into release/11.0-preview1 Feb 6, 2026
10 checks passed
@akoeplinger
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]>
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.

1 participant