Skip to content

Commit 6cb9803

Browse files
authored
Revert "Revert "Bump emscripten to 3.1.34" (#325)" (#332)
This reverts commit 750b3ac.
1 parent 614861f commit 6cb9803

File tree

12 files changed

+216
-278
lines changed

12 files changed

+216
-278
lines changed

README.md

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,14 @@ important concepts to help understanding the internals of the SDK:
3636
* **SDK**: A set of tools. For example, 'sdk-1.5.6-32bit' is an SDK consisting
3737
of the tools `clang-3.2-32bit`, `node-0.10.17-32bit`, `python-2.7.5.1-32bit`
3838
and `emscripten-1.5.6`.
39-
* **Active Tool/SDK**: Emscripten stores compiler configuration in a
40-
user-specific file **~/.emscripten**. This file points to paths for
41-
Emscripten, Python, Clang and so on. If the file ~/.emscripten is configured
42-
to point to a Tool in a specific directory, then that tool is denoted as being
43-
**active**. The Emscripten Command Prompt always gives access to the currently
44-
active Tools. This mechanism allows switching between different installed SDK
45-
versions easily.
39+
* **Active Tool/SDK**: Emscripten SDK stores compiler configuration in a file
40+
called `.emscripten` within the emsdk directory. This file points to paths
41+
for Emscripten, Python, Clang and so on. If the configuration file points to a
42+
Tool in a specific directory, then that tool is denoted as being
43+
**active**. This mechanism allows switching between different installed
44+
tools and SDKs.
4645
* **emsdk**: This is the name of the manager script that Emscripten SDK is
47-
accessed through. Most operations are of the form `emsdk command`. To access
48-
the emsdk script, launch the Emscripten Command Prompt.
46+
accessed through. Most operations are of the form `emsdk <command>`.
4947

5048
## System Requirements
5149

@@ -136,11 +134,11 @@ using git, and compile the package on demand.
136134
When you run `emsdk list`, it will group the Tools and SDKs under these two
137135
categories.
138136

139-
To obtain and build latest upstream wasm SDK from source, run
137+
To obtain and build latest wasm SDK from source, run
140138

141139
```
142-
emsdk install sdk-upstream-main-64bit
143-
emsdk activate sdk-upstream-main-64bit
140+
emsdk install sdk-main-64bit
141+
emsdk activate sdk-main-64bit
144142
```
145143

146144
You can use this target for example to bootstrap developing patches to LLVM,
@@ -156,7 +154,7 @@ https://emscripten.org/docs/contributing/developers_guide.html?highlight=develop
156154
### When working on git branches compiled from source, how do I update to a newer compiler version?
157155

158156
Unlike tags and precompiled versions, a few of the SDK packages are based on
159-
"moving" git branches and compiled from source (e.g. sdk-upstream-main,
157+
"moving" git branches and compiled from source (e.g. sdk-main,
160158
sdk-main, emscripten-main, binaryen-main). Because of that, the
161159
compiled versions will eventually go out of date as new commits are introduced
162160
to the development branches. To update an old compiled installation of one of
@@ -179,30 +177,18 @@ activate <tool/sdk name>`. Activating a tool will set up `~/.emscripten` to
179177
point to that particular tool. On Windows, you can pass the option `--permanent` to
180178
the `activate` command to register the environment permanently for the current user. Use `--system` to do this for all users.
181179

182-
### How do I build multiple projects with different SDK versions in parallel?
183-
184-
By default, Emscripten locates all configuration files in the home directory of
185-
the user. This may be a problem if you need to simultaneously build with
186-
multiple Emscripten compiler versions, since the user home directory can only be
187-
configured to point to one compiler at a time. This can be overcome by
188-
specifying the '--embedded' option as a parameter to 'emsdk activate', which
189-
will signal emsdk to generate the compiler configuration files inside the emsdk
190-
root directory instead of the user home directory. Use this option also when it
191-
is desirable to run emsdk in a fully portable mode that does not touch any files
192-
outside the emsdk directory.
193-
194180
### How do I track the latest Emscripten development with the SDK?
195181

196182
A common and supported use case of the Emscripten SDK is to enable the workflow
197183
where you directly interact with the github repositories. This allows you to
198184
obtain new features and latest fixes immediately as they are pushed to the
199185
github repository, without having to wait for release to be tagged. You do not
200186
need a github account or a fork of Emscripten to do this. To switch to using the
201-
latest upstream git development branch `main`, run the following:
187+
latest git development branch `main`, run the following:
202188

203189
emsdk install git-1.9.4 # Install git. Skip if the system already has it.
204-
emsdk install sdk-upstream-main-64bit # Clone+pull the latest emscripten-core/emscripten/main.
205-
emsdk activate sdk-upstream-main-64bit # Set the main SDK as the currently active one.
190+
emsdk install sdk-main-64bit # Clone+pull the latest emscripten-core/emscripten/main.
191+
emsdk activate sdk-main-64bit # Set the main SDK as the currently active one.
206192

207193
### How do I use my own Emscripten github fork with the SDK?
208194

bazel/emscripten_deps.bzl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ filegroup(
1414
"emscripten/cache/sysroot/include/c++/v1/**",
1515
"emscripten/cache/sysroot/include/compat/**",
1616
"emscripten/cache/sysroot/include/**",
17-
"lib/clang/16/include/**",
17+
"lib/clang/17/include/**",
1818
]),
1919
)
2020
@@ -53,12 +53,16 @@ filegroup(
5353
srcs = [
5454
"bin/clang{bin_extension}",
5555
"bin/llvm-ar{bin_extension}",
56+
"bin/llvm-dwarfdump{bin_extension}",
5657
"bin/llvm-nm{bin_extension}",
5758
"bin/llvm-objcopy{bin_extension}",
59+
"bin/wasm-ctor-eval{bin_extension}",
5860
"bin/wasm-emscripten-finalize{bin_extension}",
5961
"bin/wasm-ld{bin_extension}",
60-
"bin/wasm-opt{bin_extension}",
6162
"bin/wasm-metadce{bin_extension}",
63+
"bin/wasm-opt{bin_extension}",
64+
"bin/wasm-split{bin_extension}",
65+
"bin/wasm2js{bin_extension}",
6266
":emcc_common",
6367
] + glob(
6468
include = [

bazel/emscripten_toolchain/toolchain.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ def _impl(ctx):
914914
"-iwithsysroot" + "/include/compat",
915915
"-iwithsysroot" + "/include",
916916
"-isystem",
917-
emscripten_dir + "/lib/clang/16/include",
917+
emscripten_dir + "/lib/clang/17/include",
918918
],
919919
),
920920
# Inputs and outputs
@@ -1081,7 +1081,7 @@ def _impl(ctx):
10811081
emscripten_dir + "/emscripten/cache/sysroot/include/c++/v1",
10821082
emscripten_dir + "/emscripten/cache/sysroot/include/compat",
10831083
emscripten_dir + "/emscripten/cache/sysroot/include",
1084-
emscripten_dir + "/lib/clang/16/include",
1084+
emscripten_dir + "/lib/clang/17/include",
10851085
]
10861086

10871087
artifact_name_patterns = []

bazel/revisions.bzl

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@
22
# DO NOT MODIFY
33

44
EMSCRIPTEN_TAGS = {
5+
"3.1.34": struct(
6+
hash = "2fdd6b9e5b67d5b62f84d0501a876513ff118ef1",
7+
sha_linux = "dd3713f077072dcdb811f934d6685187daa47c424039e31cba83633c8d1681b1",
8+
sha_mac = "3824609ee9b7c9919e29b19775d495a16778adb981867901f4bc503fe2f65d7d",
9+
sha_mac_arm64 = "72728637171df46e7cd22f90537dd6faf1d4809ed1befc504ff96768c82f0e0f",
10+
sha_win = "7538d1a1e0d586bd0723f595557551b05d724a5803132949a6fafb8b056af995",
11+
),
12+
"3.1.33": struct(
13+
hash = "49b960bd03b3a9da478a08541ce6eafe792a58a8",
14+
sha_linux = "eab02b3f4b7c076974452ba602f908a36adf597afa15b16095b441f191ede1bb",
15+
sha_mac = "b8dad3cddb19c1daf9dae99020bd17b903ae9649cfc58e433ea4951e758804de",
16+
sha_mac_arm64 = "fbf03d06c7503f091191e440b8ea577d65b3261167cdb47359d053f12888974b",
17+
sha_win = "031f951668eaeea39bd9363abb3f514efc3401506374984fa9b1d7ba3130a62f",
18+
),
19+
"3.1.32": struct(
20+
hash = "29ad1037cd6b99e5d8a1bd75bc188c1e9a6fda8d",
21+
sha_linux = "25fa252e9fc674d1bcef35b3a10dd85024aa93c843b8067f8d917e5151968ffc",
22+
sha_mac = "7881714e7738eb183b5a421bb2b907e96359e791ad0a622be6e7f5690a16b9d6",
23+
sha_mac_arm64 = "04eede7352aca4b6fc1c111a8b31d00e8aa40547c3cd062ff9be4ffe1ed98d95",
24+
sha_win = "22c3429eb1e6051bda46e9c02c14eca1ae3749ba8c411fbd5a3b51e3b9623161",
25+
),
26+
"3.1.31": struct(
27+
hash = "1eec24930cb2f56f6d9cd10ffcb031e27ea4157a",
28+
sha_linux = "5952523c0c58cfc7c8839c1d3fe42ff34af5d8721231306ee432063dfacf96ca",
29+
sha_mac = "13482cf3cb29f423f2037b9dc2b9e4ff72d0a49fcd471bbaa9b76d9f86f31d82",
30+
sha_mac_arm64 = "654a35af16be5eeb2082e68fb36190fe76de28fa2da75ac0d2197482a203f39a",
31+
sha_win = "493c29f5a505ccd9687036ee4c580d190b1c32b286be0e751a78e68997cec8b2",
32+
),
533
"3.1.30": struct(
634
hash = "dc1fdcfd3f5b9d29cb1ebdf15e6e845bef9b0cc1",
735
sha_linux = "151d7afdfb728e1e55ed1d100e4d3fbd20925fd65f3c3b9e093061a2c89dcac7",

emscripten-releases-tags.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"aliases": {
3-
"latest": "3.1.30",
3+
"latest": "3.1.34",
44
"latest-sdk": "latest",
55
"latest-arm64-linux": "3.1.21",
66
"latest-64bit": "latest",
@@ -10,6 +10,14 @@
1010
"latest-releases-upstream": "latest"
1111
},
1212
"releases": {
13+
"3.1.34": "2fdd6b9e5b67d5b62f84d0501a876513ff118ef1",
14+
"3.1.34-asserts": "385382932c18a1312fff88000c4f83c2b9d1bb44",
15+
"3.1.33": "49b960bd03b3a9da478a08541ce6eafe792a58a8",
16+
"3.1.33-asserts": "e3ca2c6756b75cf6c6daa40276de0f25218e04a7",
17+
"3.1.32": "29ad1037cd6b99e5d8a1bd75bc188c1e9a6fda8d",
18+
"3.1.32-asserts": "2811c849256ec5b62b4ec32fb8369e5f3c9a54b1",
19+
"3.1.31": "1eec24930cb2f56f6d9cd10ffcb031e27ea4157a",
20+
"3.1.31-asserts": "48488847a38bb9cfb36e7397bea21ab2bb062680",
1321
"3.1.30": "dc1fdcfd3f5b9d29cb1ebdf15e6e845bef9b0cc1",
1422
"3.1.30-asserts": "21cca44e843267533c3d0b258b46c37bd142a2d7",
1523
"3.1.29": "d949f1b99a477d4b0b54d95413df3688afa69d0a",

0 commit comments

Comments
 (0)