Skip to content

Bump to 6.0.2 - #1789

Merged
akoeplinger merged 27 commits into
dotnet:mainfrom
pavelsavara:dotnet/bump_to_6.0.2
Jul 9, 2026
Merged

akoeplinger merged 27 commits into
dotnet:mainfrom
pavelsavara:dotnet/bump_to_6.0.2

Conversation

@pavelsavara

Copy link
Copy Markdown
Member

No description provided.

sbc100 and others added 27 commits April 14, 2026 16:22
…t#1701)

Fix different issues with Node.js Nightly version downloading. (missing
f in print, now unnecessary MACOS version pin, and parsing the version
numbers to find the latest version.
Add new env. var. EMSDK_RETRY_CLEAN_BUILD=1, which automatically re-does
a cmake config+make from a clean slate, if incremental build failed.
This helps mitigate against the frequent LLVM repository issues that
break incremental building.
This utility has been available in the standard library since python3.3.
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 (dotnet#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 caught as few bugs form the f-string conversion.
In this old PR (see this comment
emscripten-core#1519 (comment))
it was determined that LLVM_ENABLE_TERMINFO could likely be removed
since it couldn't be found in the LLVM repo anymore. This PR removes
this option.
This version should work with both `.bat` and the new `.exe`.
…and_line (dotnet#1715)

I'm not sure why this was originally added as part of dotnet#1373, but its
breaking with our transition to using true dynamic linking because bazel
currently does not know how to include PIC versions of the standard
libraries.

See dotnet#1714
…lds. NFC (dotnet#1710)

Also remove `version_filter` completely. The last usage of this field
was removed in dotnet#1165.
…1718)

This allows passing the version from Emscripten-releases.
- Remove some "return after else" patterns
- Assert that self.os of one of the valid values.
- Use `==` rather then `in` for comparisons with `self.os` since we only
support a fixes set of values.
This environment variable has not existed for a long time now.
This will silence linker warnings when building binaries with enabled
threads.
This no longer needs to be a feature as it's always implied. Non-LLVM
backends are not supported anymore.
…et#1728)

It would probably be more elegant to reuse the existing `simd` attribute
and change it's type from boolean into string enum (similar like it's
for `threads`), but that would be a breaking change so I decided to add
additional boolean acknowlidging that `simd=False`, `relaxed_simd=True`
makes no sense and will also enable `simd` as `relaxed_simd` implies
`simd`.
# Conflicts:
#	.github/workflows/create-release.yml
#	.github/workflows/tag-release.yml
#	bazel/MODULE.bazel
#	bazel/README.md
#	bazel/emscripten_build_file.bzl
#	bazel/emscripten_cache.bzl
#	bazel/emscripten_toolchain/link_wrapper.py
#	bazel/emscripten_toolchain/toolchain.bzl
#	bazel/emscripten_toolchain/wasm_cc_binary.bzl
#	bazel/hello-world/BUILD
#	bazel/hello-world/hello-world-simd.cc
#	bazel/remote_emscripten_repository.bzl
#	bazel/revisions.bzl
#	bazel/test_external/long_command_line/BUILD.bazel
#	bazel/test_secondary_lto_cache/MODULE.bazel
#	bazel/test_secondary_lto_cache/MODULE.bazel.lock
#	emsdk.py
#	test/test.bat
#	test/test.py
#	test/test_bazel.ps1
#	test/test_bazel.sh
#	test/test_bazel_mac.sh
@pavelsavara
pavelsavara requested a review from akoeplinger July 9, 2026 12:18
@pavelsavara pavelsavara self-assigned this Jul 9, 2026
@akoeplinger
akoeplinger merged commit b9ab64e into dotnet:main Jul 9, 2026
1 of 10 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 11, 2026
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.

8 participants