Commit Graph

172 Commits

Author SHA1 Message Date
Sam Clegg
f3bb209b86 Remove fastcomp SDK and fastcomp build rules. NFC (#1165)
Folks that want to work with fastcomp will now need to use an older
checkout of emsdk.
2023-01-09 04:53:13 -08: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
c33c7be17f Fix mac python by avoiding linking libintl (#981)
Fixes: #980
2022-01-31 11:37:32 -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
juj
2b3e0b9176 Add back node.js 12.18.1 packages for Windows 7 support. (#877) 2021-10-27 10:12:06 -07:00
Sam Clegg
b362b17326 Add arm64 fastcomp releases to emsdk_manifest.json (#891)
This was missing from emsdk_manifest.json and should alow older fastcomp
SDKs to be install on M1 apple hardware (in emulation mode).

Fixes: #889
2021-09-09 08:42: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
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
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
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
Sam Clegg
329423fea2 Remove "fastcomp-master" SDKs from emsdk_manifest.json (#752)
It makes not sense to install fastcomp with the current main
branch of binaryen and emscripten so remove these SDK options.
2021-03-10 11:11:28 -08:00
Sam Clegg
1fe80678a9 Missing update from #746 (#751) 2021-03-09 11:13:09 -08:00
Sam Clegg
67dc4b4989 Switch emscripten branch from master to main (#750) 2021-03-08 15:52:14 -08:00
Sam Clegg
226b548c31 Rename binaryen-master to binaryen-main (#746)
This matches the branch name that was already updated/renamed.
2021-03-08 08:33:25 -08:00
Sam Clegg
0a841562df Avoid post-install when nothing is installed (#736)
This avoids re-running the post-install scripts when commands such as
`./emsdk install latest` a re-run.  This re-running of npm ci can be
significant slowdown especially during testing and developerment.

Becuase of the refactoring this change change also means we exit ealier
when a given tool fails to install.  In general we want to error out as
early as possible on the first failure so as not to bury it.
2021-03-01 09:32:07 -08:00
Sam Clegg
ef638b3860 Rename llvm-git-master -> llvm-git-main (#718)
To match the branch rename that happened in #693.
2021-02-17 19:11:07 -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
Matthew McRaven
02edc9765b Set LLVM's git branch to main in manifest. (#693)
LLVM renamed their default branch to main from master.
This breaks builds of the SDK from the sources.

This commit retargets LLVM builds to use the git branch main when appropriate.
The version name "master" remains the same to maintain compatibility with existing build scripts

Fixes #692.
2021-01-28 17:49:46 -08:00
Matthew McRaven
6357c6dcab Set binaryen's git branch to main in manifest. (#684)
Binaryen renamed their default branch to main from master.
This breaks builds of the SDK from the sources.

This commit retargets binaryen builds to use the git branch `main` when appropriate.
The version name "master" remains the same to maintain compatibility with existing build scripts

Fixes #683.
2021-01-21 18:57:59 -08:00
Sam Clegg
10290f2f1d Update mac circleci environment (#644)
Apparently `Image xcode:9.0 is not supported` these days.
2020-10-24 10:01:10 -07:00
Sam Clegg
42abe55fd7 Remove native optimizer build from emscripten master install (#622)
This is still used for the legacy emscripten tags installation
but the native optimizer no longer exists on master.

This fixes `emsdk install emscripten-master-64bit`
2020-09-21 16:59:19 -07:00
Amin Yahyaabadi
edc53e7a0a Add missing python locations to emsdk.ps1 (#615) 2020-09-15 15:14:52 -07:00
Sam Clegg
e08b17c8bf Remove copy_pregenerated_cache (#609)
Newer SDKs don't require this and removing it doesn't break
any older SDKs (it just slows down their first use).
2020-09-10 16:32:23 -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
Sam Clegg
0e5f2d8e11 Rename osx -> macos (#563) 2020-07-21 12:26:30 -07:00
Sam Clegg
4aa028017c Use bundled/embedded python3 binary on OSX (#561)
See https://github.com/emscripten-core/emscripten/issues/7198
2020-07-21 10:21:02 -07:00
Sam Clegg
d8984b2a9d Rename build_llvm_monorepo to just build_llvm. NFC. (#560)
And build_llvm_fastcomp to just build_fastcomp (matches its name
in the json file.
2020-07-20 17:33:54 -07:00
Derek Schuff
c08015164e Update nodejs to v12.18.1 (#529)
It includes an update to v8 7.8
2020-06-24 10:41:47 -07:00
Sam Clegg
14c0a9ec21 Update default emscripten cache directory (#501)
See: https://github.com/WebAssembly/waterfall/pull/644

For the sake of older versions of emscripten explicitly set
EM_CACHE environment variable to point to the in-tree cache
directory.
2020-05-13 16:28:49 -07:00
Alon Zakai
4265173445 Remove legacy builds (#500)
"Legacy" here meaning anything using only < 1.38.0, and anything
using 'nightly' mozilla builds (which have not been done for years).

This also lets us remove node 4.1.1 (but not 8.9.1).
2020-05-13 08:10:23 -07:00
Sam Clegg
64d54b832f Add pywin32 to windows python installation (#487)
Fixes: #458
2020-05-04 11:09:32 -07:00
Sam Clegg
1e62b13573 Remove reference of old clang binary. (#469)
I think this should have been part of #395.

Fixes: https://github.com/emscripten-core/emscripten/issues/10904
2020-04-16 09:30:12 -07:00
Sam Clegg
b1f867a5a3 Re-enable building master from source for linux 32-bit (#471)
Doing this for windows is trickier as we would also need to provide
the python binaries for win32.

Note that we don't provide node binaries in this case because the
node project itself doesn't produce 32-bit builds for linux anymore.
This should still be useable for 32-bit linux users although they
will need to provide their own node (or use the system provided
one).

Fixes: #470
2020-04-15 17:10:44 -07:00
Alon Zakai
8a35734a47 Fix precompiled library support + testing (#444)
Support multiple libraries for precompiled things, as we use a
different one for LTO, etc.
2020-03-05 10:45:46 -08:00
Sam Clegg
573278be09 Switch to python3 when installing python on windows installs. (#349) 2020-02-04 17:03:20 -08:00
Brion Vibber
ff44c97ffa Re-add binaryen dep to upstream-master SDK builds (#435)
This should ensure that BINARYEN_PATH is added to the resulting
~/.emscripten file when building from source:

https://github.com/emscripten-core/emsdk/issues/434
2020-01-30 09:44:35 -08:00
Sam Clegg
3631f0aac3 Remove use of incoming branches (#423)
See https://github.com/emscripten-core/emscripten/issues/10067
2020-01-14 13:59:15 -08:00
juj
d30ba160ed Add npm install step as post-build to Emscripten (#404)
* Add npm install step as post-build to Emscripten

* Address review

* Run npm install on releases-upstream and releases-fastcomp

* Fix node path

* Add node to PATH

* Only install production packages with npm

* Address review
2020-01-10 22:11:38 +02:00
juj
a0d34f6a61 Add upstream-incoming SDK targets for macOS and Linux as well (#413) 2019-12-17 21:52:41 +02:00
juj
2546d5ab51 Build wasm master (#401)
* Build wasm upstream

* Fix lld build for wasm-ld. Add note about compiler-rt not working.

* Address review

* Address review

* Address review

* Address review

* If targeting fastcomp Clang, apply EMCC_WASM_BACKEND=0 so that previous leftover environment with EMCC_WASM_BACKEND=1 will not cause a conflict

* Add docs about setting up Emscripten
2019-12-16 23:59:15 +02:00
juj
e10be710da Rename old fastcomp-based tools to a specific fastcomp- prefixed name (#400)
* Rename old fastcomp-based tools to a specific fastcomp- prefixed name to clearly distinguish legacy toolchain

* Update test.py
2019-12-12 09:15:26 +02:00
juj
12f1824ffb Remove Tools and SDKs that do no longer work after migration from Mozilla to Google hosting. (#395) 2019-12-03 09:20:05 +02:00
Sam Clegg
e047fe4c1e Add python and java to 'releases-upstream' for windows (#376)
These are part of `releases-fastcomp` but for some reason are not
included in the upstream equivalent.  I imagine they were simply
overlooked.
2019-10-18 14:08:39 -07:00
Sam Clegg
efc64876db Update node version to 12.9.1 (#348)
Turns out 10.16.3 has issues running some emscripten tests due to a
v8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=8347.
2019-09-03 12:16:46 -07:00