Repository navigation
Bump to 6.0.2 - #1789
Merged
Merged
Bump to 6.0.2#1789
Conversation
…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.
With emscripten-releases revisions: https://chromium.googlesource.com/emscripten-releases/+/6cd98e86d7749ff98b82b7f2ae78eb4f01942788 (LTO) https://chromium.googlesource.com/emscripten-releases/+/8f07fe77a9ba5f112a6f0582c2920979582a8682 (asserts) --------- Co-authored-by: Sam Clegg <[email protected]>
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.
With emscripten-releases revisions: https://chromium.googlesource.com/emscripten-releases/+/772bb4648be4a897ca062d6adc65bc70223d2703 (LTO) https://chromium.googlesource.com/emscripten-releases/+/73ff56285f09ed000c3584fd51fd9c765288e0f1 (asserts) --------- Co-authored-by: Sam Clegg <[email protected]>
- 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.
With emscripten-releases revisions: https://chromium.googlesource.com/emscripten-releases/+/4857659ec65fbcf1f3e43c88499925475957b238 (LTO) https://chromium.googlesource.com/emscripten-releases/+/325ad8eb281fc4ce8bcc051387caef95282ee471 (asserts) --------- Co-authored-by: Sam Clegg <[email protected]>
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.
With emscripten-releases revisions: https://chromium.googlesource.com/emscripten-releases/+/004876f1984e18a9eb0736c5ca417ac86d386fb8 (LTO) https://chromium.googlesource.com/emscripten-releases/+/1aaaaa4ea0f3a93a03ac7d535db33b42f85172c5 (asserts)
…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
akoeplinger
approved these changes
Jul 9, 2026
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.
No description provided.