Commit Graph

764 Commits

Author SHA1 Message Date
Derek Schuff
953244003b 2.0.27 (#868)
Includes LTO and non-LTO, with non-LTO as the default
2021-08-12 19:34:34 -07:00
Derek Schuff
6d1efad07e 2.0.26-lto (#861) 2021-07-28 15:38:10 -07:00
Sam Clegg
a3d65c80d3 2.0.26 (#858) 2021-07-26 15:26:01 -07:00
Sam Clegg
5c0e31a03a 2.0.25 (#850) 2021-06-30 10:24:41 -07:00
Attila Oláh
7f983966b3 Support linking with -o filename (#849)
When linking with `-o filename` (such as in various CMake build checks), the parameter passed to the linker is a temporary file, and it is passed as a bare filename (i.e. relative path without a `'/'`). In such cases, `outdir` would have been the empty string, and the final `tar` command would fail (actually the call to `subprocess.check_call(…)` is what fails).
2021-06-28 11:01:27 -07:00
Attila Oláh
eaa49511f4 Print sys.argv when link_wrapper.py is invoked incorrectly (#847)
This should help debug cases when the link_wrapper is not invoked correctly.
2021-06-24 09:05:34 -07:00
Sam Clegg
0eae457cdb Point zsh and csh users to the correct startup script (#843)
Fixes: https://github.com/emscripten-core/emscripten/issues/14446
2021-06-17 10:36:50 -07:00
Sam Clegg
bb3189b941 Consistent error messages (#840) 2021-06-16 09:10:12 -07:00
Sam Clegg
c341e544a7 Error out on attempt to activate a missing tools (#838)
Previously if a tool (any part of an SDK) was not installed
we would issue a warning and continue to active without returning
non-zero.

This meant doing `emsdk install 2.0.0 && emsdk activate latest`
would appear to be work aside from the warning messages about
latest not being installed.

This is especially annoying since we dropped support for side
by side SDK installations.  The following sequence is no longer
valid and we want to make that clear by erroring out:

```
$ emsdk install 2.0.1
$ emsdk install 2.0.2
$ emsdk activate 2.0.1
```

Since 2.0.2 replaces 2.0.1 on the filesystem the active here
could fail hard rather than just warning.
2021-06-15 22:19:47 -07:00
Sam Clegg
e2dc11e0db 2.0.24 (#839) 2021-06-10 09:02:19 -07:00
Yulong Wang
9fca4702ac bugfix: allow to install SDK binaries alone (#834) 2021-06-08 10:57:29 -07:00
Sam Clegg
57b8067188 Improve emscripten-releases-tags.txt to support mutliple aliases (#837)
Also, improve reporting of version resolution. e.g.:

```
$ ./emsdk  install sdk-latest
Resolving SDK alias 'latest' to '2.0.23'
Resolving SDK version '2.0.23' to 'sdk-releases-upstream-77b065ace39e6ab21446e13f92897f956c80476a-64bit'
Installing SDK 'sdk-releases-upstream-77b065ace39e6ab21446e13f92897f956c80476a-64bit'..
...
```
2021-06-08 10:08:01 -07:00
Derek Schuff
f26ebb74c0 Add 2.0.23 LTO release (#830) 2021-05-27 08:50:39 -07:00
Sam Clegg
f44b841547 2.0.23 (#828) 2021-05-26 18:10:10 -07:00
Sam Clegg
c9157a9a54 2.0.22 (#827) 2021-05-25 07:21:40 -07:00
Derek Schuff
32fd1fafac 2.0.21 (#818) 2021-05-18 08:39:21 -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
Derek Schuff
b33aaafbcd Create manifest SDK entries for ARM64 emscripten-releases builds (#816)
This allows emsdk to download the new ARM64 binaries from
the emscripten-releases builders.
2021-05-11 08:40:06 -07:00
Derek Schuff
544dd6c32b Add emscripten-releases tag for 2.0.20-lto (#817) 2021-05-10 11:10:41 -07:00
Sam Clegg
ee63b9d5d6 2.0.20 (#815) 2021-05-06 14:31:10 -07:00
Sam Clegg
09a6eae0aa Add optional hash to scripts/create_release.py (#813) 2021-05-05 11:33:42 -07:00
juj
4dbc028cb0 Remove explicit closure install step, the first install command does already seem to install google-closure-compiler-windows at least. (#803) 2021-05-05 06:57:16 -07:00
Sam Clegg
dedf902193 Add newline at end of emscripten-version.txt (#812)
This file in in the repo itself contains a newline so we should match
that.  Also everybody knows that text files should end in a newline :)
2021-05-04 16:51:19 -07:00
Sam Clegg
33ce2bdf2c 2.0.19 (#811) 2021-05-04 15:25:01 -07:00
Sam Clegg
afecc765fb Switch primary branch from master to main (#809)
See: #805
2021-05-03 11:43:51 -07:00
Sam Clegg
1284e37ab9 Switch emscripten-release from master to main (#804) 2021-05-03 08:38:11 -07:00
Sam Clegg
894c25b52a Switch to HEAD.zip when downloading archive from github. (#806)
This works regardless of the name of the primary branch so that
the code will continue to work if/when we rename `main` to `master`.

See: #805
2021-04-29 15:48:18 -07:00
Sam Clegg
b4c9194d81 Unset emsdk-related environment variable from inactive tools (#801)
When we deactivate a tool we also want to remove its environment
variables.   One driver for this is that modern sdks don't set
`EM_CACHE` whereas old ones did and we want to make sure that
`EM_CACHE` gets unset when folks upgrade (and then re-set if
they downgrade).  See #797.
2021-04-29 08:43:20 -07:00
juj
3510ab2697 Add option --override-repository (#792)
* Add option --override-repository to allow controlling where git clones happen from.

* Address review
2021-04-29 03:32:43 -07:00
juj
16ee884464 Fix issues with npm install of google-closure-compiler installing all dev packages as well. (#793) 2021-04-26 14:38:00 -07:00
Sam Clegg
4282d5d44b Avoid setting EM_CACHE unless we really need to (#797)
This avoid polluting the global environment which makes
side-by-side installational of different emscripten version
harder.

See https://github.com/emscripten-core/emscripten/pull/13954
2021-04-26 06:29:01 -07:00
Derek Schuff
cee96f8054 2.0.18 (#799) 2021-04-23 18:35:03 -07:00
Sam Clegg
e32410e004 Add create_release.py script (#798) 2021-04-23 10:35:23 -07:00
juj
bda6a0c5a5 Remove the use of a custom temp directory. That is a bad practice, we should reuse system temp directory instead, that is what it is there for. (#791) 2021-04-23 10:53:02 +03:00
Sam Clegg
f03f1dc579 2.0.17 (#786) 2021-04-10 17:41:55 -07:00
Piotr Paczkowski (trzeci.eu)
2e7eaf7233 Correct README.md about building arguments of docker image. Fixes #748 (#777) 2021-03-28 08:25:23 -07:00
Sam Clegg
6162e2e783 2.0.16 (#773) 2021-03-25 19:00:07 -07:00
Tim Talashok
459f7c14f6 Update bazel readme (#774)
* Update bazel/README.md

* Add deps instantiation to readme

* Add bazelrc explanations to readme

* Note the preferred way of using bazel emsdk
2021-03-25 13:00:30 -04: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
Alon Zakai
fdda8524ce Simplify the notation for installing by hash to just emsdk install HASH (#767)
Previously this had to be

emsdk install sdk-releases-upstream-HASH

The only thing preventing using just the hash was that there was no
default for the backend, so defaulting to upstream fixes this. And then
we can do

emsdk install HASH
2021-03-22 14:07:34 -07:00
Jia Yuan Lo
b85548d0dd List "Release" as the default build option (#770)
This was set back in commit cea44f475a

Fixes #760
2021-03-22 11:36:54 -07:00
walkingeyerobot
848260ed58 Bazel add html support (#765)
* allow the bazel toolchain to output html files

* allow for cc_binary rule names to end in .js

* fix python name

* continue to call emcc instead of em++ for now

* small cleanup

Co-authored-by: Mitch Foley <mitchfoley@chromium.org>
2021-03-21 20:08:54 -04:00
juj
ac98ca3882 Rename EMCC_CCACHE to _EMCC_CCACHE. (#762) 2021-03-17 17:26:19 +02: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
9c65611d96 Ccache (#711)
* Add support for ccache.

* Simplify ccache activation.

* Fix macOS ccache build

* Make ccache executable

* Add Ninja build support. Change ccache name to git.

* Fix merge conflict
2021-03-15 09:15:26 +02:00
Alexander Köplinger
1ee4a9c5be Fix GitHub repo url in emsdk_manifest.json (#757)
It was still using the old repo location which was moved to the emscripten-core organization.
2021-03-14 10:43:16 -07:00
Tim Talashok
1a3878716f Remove absl from wasm_binary (#756)
* Remove absl from wasm_binary

* Formatting fixes

* Blank line, too

* Reorder imports
2021-03-12 13:28:55 -08: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
juj
772d397a55 Fix search of VCTargetsPath for VS2019 build. (#698) 2021-03-11 14:09:48 +02:00
Sam Clegg
9a70fe3688 Rename sdk-upstream-master SDK to sdk-upstream-main (#754)
Now that all the components (binaryen, emscripten and llvm) use `main`
as the branch name is makes sense to give the SDK this name.

Keep backwards compat with the old name but issue a warning when its
used.
2021-03-10 21:54:29 -08:00