Commit Graph

850 Commits

Author SHA1 Message Date
Sam Clegg
e34773a0d1 3.1.9 (#1039) 2022-04-22 00:29:21 +00:00
John Firebaugh
e23aac7d1c Fix https://github.com/emscripten-core/emsdk/issues/1020 (#1035) 2022-04-14 15:22:36 -04:00
juj
9483a23c8a Update .gitignore to add ccache and ninja (#1027) 2022-04-13 19:48:17 +03:00
juj
7978a62f2b Pass -DENABLE_WERROR=0 when building Binaryen (#1028)
* Pass -DENABLE_WERROR=0 when building Binaryen

We are experiencing an issue at our Unity CI with building Binaryen: https://github.com/WebAssembly/binaryen/issues/4588

It seems that for end users, disabling -Werror is a good general measure to enable wider chance of success to build. Emsdk installations are unlikely to be used by Binaryen developers to iterate on Binaryen development, so it is not necessary there?

* Flake
2022-04-13 19:48:00 +03:00
juj
c2147f3b87 Enable building LLVM with about-to-be deprecated toolchains (#1029)
* Enable building LLVM with about-to-be deprecated toolchains for best chance of succeeding with the build.

* Shorten line length

* Adjust to 80 columns
2022-04-13 19:44:14 +03:00
juj
7d5e3f3e45 Git clone desired target branch directly (#1030)
When doing a git clone of a branch, instead of doing a general git clone that first would check out the default (main/master) branch and then later doing a checkout to switch to the target branch, instead specify the `--branch` option to the clone command line to immediately clone and checkout the desired final branch.

This helps first checkout runtime performance on CIs, especially when using shallow clones (GIT_CLONE_SHALLOW option).

Also this sidesteps a really odd git clone issue we are currently seeing in our CI, where it is unable to `checkout` the googletest submodule in binaryen, but would fail saying "path not found".
2022-04-13 19:34:37 +03:00
juj
051d745e16 Fix native Closure Compiler to work. (#995)
* Fix native Closure Compiler to work. Reverts my earlier PR #803 which was a great mistake, as it caused Emscripten to silently fall back to Java version of the Closure Compiler. After this PR, Closure Compiler will work on user platforms that do not have Java installed. Also forcibly remove Java version of Closure Compiler on systems where installing the native version succeeds, in order to save on code size.

* Add note to bug

* Improve google-closure-compiler-java uninstall.

* Read Closure version from Emscripten repository

* Skip native google-closure-compiler install when it is not present in the emscripten branch in package.json

* Print error
2022-04-13 16:44:59 +03:00
juj
9498542d95 Cache git executable search into a variable. (#1021)
* Cache git executable search into a variable. This helps reduce noise in the verbose debug logging output messages when EMSDK_VERBOSE=1 is enabled.

* Flake

* Mark cached_git_executable global
2022-04-12 16:08:02 -07:00
yowl
315e76344f Add windows download location to python search path - match manifest (#1024) 2022-04-12 11:53:50 -07:00
百地 希留耶
714d434b1a Set environment for powershell on all platforms (#1017) 2022-03-28 08:41:40 -07:00
Sam Clegg
2346baa7bb 3.1.8 (#1016) 2022-03-25 00:38:04 -07:00
Sam Clegg
dd10e14bce Followup from #1013 (#1015) 2022-03-24 16:19:49 -07:00
Sam Clegg
1b1f5f24df Remove unused codepath for single-file tools. NFC (#1013)
We don't have any tools that are just one file, and indeed we
assume these days that tools install to their own directory.
2022-03-24 15:29:40 -07:00
Sam Clegg
2a68987f5e Remove non-ascii char from emsdk.py. NFC (#1014)
This was introduced by mistake in #996 and causes Emsdk.test_no_32bit to fail.
2022-03-23 16:26:39 -07:00
juj
497595e830 Fix macOS build (#996)
* Fix macOS build. See https://github.com/WebAssembly/binaryen/issues/4299

* Update comment
2022-03-23 09:32:54 +02:00
Sam Clegg
637777bd62 Minor python code cleanup (#1008)
Regarding the change to `content_exists`, we only support tools that
are directories full of files, there is no such thing as a tool that
is just a single file and not a directory.
2022-03-22 16:52:43 -07:00
Sam Clegg
8cea3780cd Update emsdk.bat after recent python update (#1010)
Fixes: #1009
2022-03-22 16:06:23 -07:00
Sam Clegg
3e7e0ab8c3 Add prebuilt binaries of 3.1.7 for linux/arm64 (#1011) 2022-03-22 16:02:05 -07: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
433a2d1bc0 Remove some unused functions. NFC (#1007) 2022-03-18 19:12:58 +00:00
Sam Clegg
858f73d260 Consistent use of os.getenv. NFC (#1006)
Is slightly less typing than os.environ.get().

Followup to #1004.
2022-03-18 18:26:57 +00:00
Sam Clegg
bfcfad3a99 Remove unsed 'windows_install_path' (#1005) 2022-03-18 14:23:22 -04:00
Sam Clegg
82301254f7 Use second argument to os.getenv to simplify code. NFC (#1004) 2022-03-18 11:03:05 -07:00
Piotr Sikora
0ea8f8a870 Provide "executable" in wasm_cc_binary's DefaultInfo. (#998)
This is needed to allow custom rules and/or transitions on top of wasm_cc_binary (e.g. to workaround #972).

It's debatable whether .wasm is the correct executable target for non-standalone Wasm builds, but we don't have a way to differentiate those in wasm_cc_binary, and considering that this attribute isn't exported now, it shouldn't break anything.
2022-03-09 07:09:39 -08:00
Sam Clegg
1b8cb739e0 3.1.7 (#997) 2022-03-07 08:19:27 -08:00
Sam Clegg
7a09f8cc1c Add mechanism to override OS (for testing purposes) (#993)
Similar to `EMSDK_ARCH` which I added in #935.
2022-02-25 09:42:12 -08:00
Sam Clegg
fd08e9ad24 Error (don't just warn) on unknown architecture (#935)
Also, add tests for unknown architecture and wrong bitness and
add a mechanism (`EMSDK_ARCH`) to override the architecture assumed
by emsdk.
2022-02-25 00:44:14 -05:00
Sam Clegg
95162d561b Fix branch name in scripts/create_release.py 2022-02-24 18:27:32 -08:00
Sam Clegg
15fc2b4efe 3.1.6 (#992) 2022-02-24 08:47:27 -08:00
Sam Clegg
f33e229bb1 3.1.5 (#990) 2022-02-17 20:42:22 -08:00
Kevin Lubick
600dc4d912 Add closure example for wasm_cc_binary (#941)
* Stub out addition of closure_externs_file option in wasm_cc_binary

* WIP

* args are passed, externs cannot be found

* try location

* update tests
2022-02-17 13:16:18 -05:00
Derek Schuff
d7d8fef23e 3.1.4 (#988)
Update emscripten-releases tags, and update Bazel include paths to match the new clang version number.
2022-02-14 18:12:25 -05: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
fc645b7626 3.1.3 (#979) 2022-01-31 09:35:26 -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
476a14d60d 3.1.2 (#973) 2022-01-21 10:39:10 -08:00
Sam Clegg
0f0ea34526 Add git submodule update when doing a git checkout (#974)
This is required to build binaryen since
https://github.com/WebAssembly/binaryen/pull/4466
2022-01-20 17:25:43 -05:00
Piotr Sikora
61c35abc7a Don't advertise "per_object_debug_info" feature in Bazel. (#969)
It breaks @emsdk in workspaces that have this feature enabled.

The following error appears when using the latest commit:

    cc_toolchain '@emsdk//emscripten_toolchain:everything' with
    identifier 'emscripten-wasm' doesn't define a tool path for 'dwp'

The following error appears after adding `emdwp` tool and scripts:

    output '*.dwo' was not created

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2022-01-19 18:45:46 -05:00
Piotr Sikora
23b3e18db8 Allow @emsdk to be imported in a non-x86_64 host. (#970)
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2022-01-19 18:44:08 -05:00
Piotr Sikora
7eecde8afc Fix building rules_foreign_cc targets in Bazel. (#968)
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2022-01-16 15:20:53 -05:00
Sam Clegg
447aa44d78 Remove download_even_if_exists argument to download_and_unzip (#964)
These days this argument really means `install_even_if_directory_exists`
(at least since #9300.

However by the time we call `download_and_unzip` we have already checked
that `is_installed()` is false so we know we want to install for sure.
If the installation directory already existed and contained the correct
contents we would never get as far as `download_and_unzip`.
2022-01-10 12:49:51 -08:00
Sam Clegg
2c09626c34 3.1.1 (#965) 2022-01-10 10:00:22 -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
Sam Clegg
82ad00499a Remove unused argument. NFC (#952)
The usage of this argument was removed in #838.
2022-01-05 06:00:44 -08:00
Greg Buchholz
060b48f0c6 Correct typo in "emsdk help" message. (#959)
When invoking "emsdk help", there is a typo/grammatical error in the second to last paragraph.
See also:

    https://github.com/emscripten-core/emsdk/issues/957
2021-12-26 15:26:51 -08:00
Sam Clegg
4764bfa848 Add test and remove unused args (#951)
Followup to #930: Add a tests, and remove newly-unused arguments
to unzip and untargz.
2021-12-22 16:21:07 -08:00
Sam Clegg
8e7b714a0b 3.1.0 (#955) 2021-12-22 15:48:24 -08:00