Commit Graph

61 Commits

Author SHA1 Message Date
Sam Clegg
40e9cd8fbc Update linux arm64 to 3.1.47 (#1288) 2023-10-10 23:30:01 -07:00
Sam Clegg
717174835a Use .tar.xz extension for arm64 linux binary upload (#1287) 2023-10-09 19:24:36 -07:00
Sam Clegg
8e82384f27 Update file extension used by create_release script (#1285)
This should have been part of #1235
2023-10-09 18:54:56 -07:00
Derek Schuff
3391e039d6 Replace update_bazel_workspace.sh with a python script (#1271)
This script is (IMO) more readable, but the real reason for this change is that
it raises an error message when the binary package fails to download. (The shell
script silently generated a bogus hash instead, because the shell's `set -e`
builtin does not affect commands executing inside a $() context.
It seemed just as easy to rewrite the script in Python as to fix that.

This change also updates some outdated filename references.
2023-08-24 10:10:29 -07:00
Sam Clegg
2d22a55df8 Update linux arm64 build. NFC (#1270) 2023-08-23 13:43:33 -07:00
Sam Clegg
2d3b8a743e Have create_release.py push the new branch automatically (#1255)
Having used this script for a while now I'm not sure there is any
point if leaving this last step as a manual push.
2023-07-10 14:03:32 -07:00
Derek Schuff
d7327b4850 Update node, 15.14.0 -> 16.20.0 (#1232)
This allows us to use the native ARM64 version on MacOS.
Also update the test scripts to work on ARM64 mac, and skip tests that aren't relevant.
2023-06-20 18:57:05 +00:00
Sam Clegg
dd8bbe5e82 Update node version 14.15.5 -> 15.14.0 (#829) 2023-04-11 18:17:46 +00:00
Sam Clegg
70323522d6 Switch to nuget python package for windows (#1001)
This allows us to use pip and install other packages.

Fixes #16466
2022-03-21 09:16:44 -07:00
Sam Clegg
95162d561b Fix branch name in scripts/create_release.py 2022-02-24 18:27:32 -08:00
Matthew Soulanille
bc6209b6dc Support Bazel builds on Apple silicon (#978)
* Support Bazel builds on Apple silicon

* Add sha_mac_arm64 hash for 3.1.3

* Configure node_repositories in emscripten_deps.bzl

* Add mac arm64 to bazel workspace update script

Co-authored-by: Matthew Soulanille <matthew@guppy.home>
2022-02-11 14:18:16 -05:00
Sam Clegg
c33c7be17f Fix mac python by avoiding linking libintl (#981)
Fixes: #980
2022-01-31 11:37:32 -08:00
Sam Clegg
68c835fb1a Handle two different revisions in create_release.py (one for asserts) (#977) 2022-01-28 17:12:06 -08:00
Sam Clegg
71868be25e Make sorting of releases in create_release.py stable (#976)
We were only sorting by the X.Y.Z part of the version which meant that,
for example, `1.2.3` and `1.3.4-lto` were being compared equal.
2022-01-28 16:47:13 -08:00
Sam Clegg
7bd01a2a40 Rebuild MacOS python with lzma module installed (#975)
Also update `scripts/update_python.py` such that it works on
linux once again.

Fixes: https://github.com/emscripten-core/emscripten/issues/16073
2022-01-27 07:09:53 -08:00
Sam Clegg
24e78812e0 Minor node version update v14.15.5 -> v14.18.2 (#953)
The newer versions of eslint require 14.17.0 or above.  This
updates our node version to the latest in the 14.XX series.

I don't expect any user-visible changes.
2022-01-09 07:43:39 -08:00
Ezekiel Warren
774b871eca Bazel Windows Support (#929) 2021-12-20 14:24:56 -05:00
Sam Clegg
69bc93a988 Revert "Update CMAKE_OSX_DEPLOYMENT_TARGET from 10.11 to 10.14 (#924)"
This reverts commit 99e5e0230d.
2021-11-01 15:00:45 -07:00
Sam Clegg
99e5e0230d Update CMAKE_OSX_DEPLOYMENT_TARGET from 10.11 to 10.14 (#924)
Apparently 10.11 is no longer good enough to run the latest version of
binaryen.  Specifically since binaryen switched to using std::variant it
now fails to build with this set to 10.11.

This is also the version used on the emscripten-releases CI which builds
the emsdk binaries:
https://chromium.googlesource.com/emscripten-releases/+/refs/heads/main/src/build.py#673
2021-11-01 14:59:30 -07:00
Kevin Lubick
f8615b4782 Run buildifier on bazel/ (#913) 2021-10-19 15:56:55 -04:00
Sam Clegg
6a932246db Use .json extension for emscripten-releases-tags.json. NFC (#870) 2021-08-25 17:21:40 -07:00
Sam Clegg
e2dc11e0db 2.0.24 (#839) 2021-06-10 09:02:19 -07:00
juj
d1b4543658 macOS and Linux backwards compatibility (#819)
* Disable optional LLVM and LLDB dependencies. Target macOS 10.11 at minimum.

* flake
2021-05-18 07:36:47 -07:00
Sam Clegg
09a6eae0aa Add optional hash to scripts/create_release.py (#813) 2021-05-05 11:33:42 -07:00
Sam Clegg
e32410e004 Add create_release.py script (#798) 2021-04-23 10:35:23 -07:00
Tim Talashok
c1589b5564 Use emsdk as external bazel dependency (#766)
* Makes provided bazel rules look up @emsdk workspace instead of local workspace
* Uses system-specific emscripten binaries instead of defaulting to linux
* Provides macros for loading emsdk dependencies (nodejs and emscripten binaries)
* Unhardcodes paths in bazel rules and .sh wrappers
* `update_bazel_workspace.sh` now updates `revisions.bzl`
* `emscripten_deps()` can be fed with specific emscripten version
* Adds external usage test

Addresses #650 and #696
2021-03-24 16:50:44 -07:00
juj
0fe3d48f22 Update to python 3.9.2 on Windows as well. Mark old Python and Node packages. (#758) 2021-03-16 09:43:02 +02:00
juj
96d7ee1c5e Fix support for Apple M1 (#753)
* Fix support for Apple M1. Node.js will still run via Rosetta 2 emulation since they do not yet have M1 support, but Python, LLVM, Emscripten and Binaryen will be native.

* Update M1 python version and URL

* Remove .gitignore additions

* Move python first in the manifest (#441)

* Use macosx-version-min when building python

* Update Intel macOS python package name
2021-03-12 17:29:56 +02:00
Sam Clegg
7d155f8424 Move tests to "test" directory. NFC. (#745) 2021-03-08 08:03:07 -08:00
Sam Clegg
9d639b383a Fix for construct_env and list with tot build installed (#741) 2021-03-05 12:51:04 -08:00
Sam Clegg
53eacf405d Allow the install of any emscripten-releases build (#732)
This is done by detecting the 40 character git sha in the SDK version
and creating a new set of tools based on this SHA.  This works for any
command that uses expand_sdk_name (i.e. install activate and update) but
it wont show up in the output of `list`.

For example:

./emsdk install sdk-releases-upstream-b0cfdb236483b6828ee2e3f263fd94f011ed1863-64bit

Or just:

./emsdk install releases-upstream-b0cfdb236483b6828ee2e3f263fd94f011ed1863
2021-03-01 17:32:03 -08:00
Sam Clegg
e08c153093 Refactor test.py to use python unittest. NFC. (#735) 2021-03-01 10:04:19 -08:00
Sam Clegg
57ebbbdabc Avoid adding our java or python to the PATH (#706)
For Java we use the value in the config file so it doesn't need to be in
the PATH.

For python, all our tools should launch via scripts that check for
EMSDK_PYTHON so having python in the PATH for emsdk users should not be
needed.

The motivation for this is that we don't want to clobber any existing
python or java versions that users might already have in their PATH.

This is the easy part of #705.
2021-02-15 13:46:54 -08:00
Sam Clegg
9e96410d7f Update node version to 14.15.5 (latest TLS release) (#708)
See https://github.com/WebAssembly/binaryen/issues/3551
2021-02-12 16:47:20 -08:00
walkingeyerobot
ba7fad312b make hello world simd a bit cleaner (#701) 2021-02-08 15:34:32 -05:00
Sébastien Jalliffier Verne
45cd9dfc0f Fix: wrong clang path in Bazel toolchain (#699) (#700) 2021-02-07 11:51:36 -08:00
Sam Clegg
cfdcf1315b Release 2.0.13 and update bazel toolchain (#694)
This change comes with fairly major change to the bazel toolchain.

- Use pre-built cache that comes with emsdk
- Mark cache as readonly using FROZEN_CACHE
- Pass `--sysroot` to match upstream emscripten change
2021-01-29 18:25:41 -08:00
Sam Clegg
2c086de21e Remove redundant testing/downloading (#695)
We have mac linux and windows bots that run this script
on each of those platforms.  This script already runs
`install latest` so there is no need to re-download these
three different archives on each platform.
2021-01-29 16:25:24 -08:00
Sam Clegg
62fb1718b8 Remove used arg in scripts/test.bat (#659)
I have no idea why this argument was included when this
script was first added.  `emsdk_env.bat` does not even pass
its argument into `emsdk.py` so this argument has no effect
here.
2020-11-30 17:44:53 -08:00
Amin Yahyaabadi
40780130aa fix: emsdk swallows/overwrites parts of PATH (#642)
This PR has three changes: 

1) Fixing --permanent flag:
The previous algorithm looped over the values of PATH 4 times to check conditions while these conditions are the opposite of each other. Also, the result did not include all the parts in the whole_path. 

	I have combined these loops and fixed the algorithm, so no path is lost. Now using --permanent the PATH and Env variables are correctly updated.

2) Fixing --system flag:
Now, the system flag does not cause the PATH values to be overwritten/clobbered. The PATH/Env variables are correctly updated.

3) Fixing flagless flag:
When no flag is provided the value of process/shell is correctly updated and preserved.

This adds the tests for all the situations.

Fixes #634
Fixes #645
2020-10-30 20:57:15 -07:00
Chris Savoie
4fe6e492c0 Fix environment variables to be consistently set when using --system or --permanent (#515)
Also switch PostMessage to SendMessageWithTimeout and only send one if
environment variables actually changed.

Also, enable and fix --permanent unit tests.
2020-10-09 12:58:59 -07:00
Amin Yahyaabadi
807e55cbec Set user environment variables permanently by using --permanent + deprecate --global (#621) 2020-09-29 22:15:22 -07:00
Sam Clegg
f8e0b49c24 Clear PYTHONHOME when using bundled python (#600)
Fixes: #598
2020-09-17 15:38:54 -07:00
Sam Clegg
843c1955fa Remove unused parameter (#611) 2020-09-16 15:48:55 -07:00
walkingeyerobot
a94f2fe06c update bazel workspace for emscripten 2.0.3 (#613)
* update bazel workspace for emscripten 2.0.3

* test to make sure WORKSPACE is up to date

* make it clear what happened when WORKSPACE is out of date

* intentionally add error to make sure circleci fails properly

* revert intentionally bad commit

* increase visibility of failure message

Co-authored-by: Mitch Foley <mitchfoley@google.com>
2020-09-11 20:15:19 -04:00
walkingeyerobot
5f630def2a add a wasm bazel toolchain (#603) 2020-09-10 18:42:46 -07:00
Bob Tolbert
c1f0ad9fcd Fix emsdk_env.sh for multiple shells (#594)
This change allows sourcing emsdk_env.sh from bash, zsh and
ksh.

The script works out the true location of the emsdk directory,
even if it is a symlink or the script itself is a symlink.

Added a test in scripts/test_source_env.sh to try sourcing via
all the shells and with various paths.

Co-authored-by: Bob Tolbert <bob@tolbert.org>
2020-08-22 11:31:16 -07:00
Alon Zakai
721ef8f476 2.0.1 (#596)
Also fix the test - we can't activate fastcomp and call upstream's emcc to
even clear the cache, as it disallows fastcomp's LLVM.
2020-08-21 12:56:57 -07:00
Alon Zakai
6adb624e04 Error on trying to get latest-fastcomp (#590)
I think this is less surprising than continuing to support latest-fastcomp
with the last fastcomp release. That's technically correct - the last release
is 1.40.1, and always will be - but when a user asks for "latest" I think they
want something up to date. Instead, give a clear error that indicates how
they can get an actually up to date build, by using upstream.
2020-08-11 15:10:43 -07:00
Sam Clegg
ff8a62a3fb Pre-bundle requests module with macOS bundles python (#589)
The problem is that python can have trouble finding the default
certifcate set on macOS.  The actual bundle is installed by the certifi
package which the requests module uses under the hood.

Fixes: #588
2020-08-11 11:51:47 -07:00