Commit Graph

579 Commits

Author SHA1 Message Date
Sam Clegg
7e22ab8ae0 Refactor such that Tool.activated_config returns a map. NFC (#502)
Split out from #501
2020-05-13 15:43:00 -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
Alon Zakai
d75a9a845f Add some docs for building from source and binary. fixes #10063 (#420) 2020-05-12 11:18:11 -07:00
Sam Clegg
f5e21de6d6 Fix for parsing existing config in --embedded mode after #495 (#498)
Ooops, I guess even the most innocent-seeming change can have
unintended consequences. Switching to embedded by default will at
least make this path more tested in the future.

Fixed #497
2020-05-08 10:45:57 -07:00
Sam Clegg
88ae40037b Make installation errors fatal (#437)
If `is_installed` doesn't return true after install than something
serious went wrong so make this into a warning.

Also, clean up couple of places to make the python code more
readable.
2020-05-07 12:51:19 -07:00
Sam Clegg
683ceadc32 Add CACHE setting to config file (for embedded users) (#495)
See https://github.com/emscripten-core/emscripten/pull/11091
2020-05-07 12:12:52 -07:00
Sam Clegg
5e996c6e69 test.py should require that the SDK be activated (#492)
It was working previously by accident because the tests were
using the defaults such as `$HOME/.emscripten`.  However usage of the
emsdk should really only happen in the emsdk environment where
EM_CONFIG dictates the config location (not just using the default).

This change is needed as precursor to making `--embedded` the default
(in this case the config doesn't live in `$HOME/.emscripten`).
2020-05-07 11:42:51 -07:00
Sam Clegg
a8263f30af Allow EMCC_BASH to force bash during construct_env (#493)
This allows `emsdk_env.sh` to work under bash for windows even in the
absence of the `MSYSTEM` environment variable (which seems to be 
the setup on circle CI.
2020-05-07 08:31:02 -07:00
Sam Clegg
99320fcf1e Support python3 in test.py (#494) 2020-05-07 08:29:42 -07:00
Alon Zakai
15ac4ffc1e 1.39.15 (#491) 2020-05-06 15:11:24 -07:00
Sam Clegg
fd269ba6b0 Add more generated files to .gitconfig (#490)
Two of these are ones that occur with --embedded users.

fastcomp-clang exists when users build fastcomp from source.
2020-05-04 15:56:08 -07:00
Sam Clegg
62914e7f66 Add script for updating node and python binaries in google storage (#486)
In both cases updating these is slightly non-trivial so encode
the process in the script.
2020-05-04 15:08:43 -07:00
Sam Clegg
e381caad2f Move test scripts into scripts directory (#485)
I'm planning on adding a some scripts for managing node and python
binaries and I don't want to clutter up the top level any more.
2020-05-04 13:40:24 -07:00
Sam Clegg
64d54b832f Add pywin32 to windows python installation (#487)
Fixes: #458
2020-05-04 11:09:32 -07:00
Alon Zakai
eeecdd02ee 1.39.14 (#484) 2020-05-01 06:38:29 -07:00
juj
7016bd60ce Drop Visual Studio 2015 build support and older (#482)
* Drop Visual Studio 2015 build support and older

* Flake
2020-04-28 17:25:19 +03:00
Alon Zakai
6dd96f1f2c 1.39.13 (#474) 2020-04-17 09:16:00 -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
c523a654c8 1.39.12 (#465) 2020-04-09 16:32:39 -07:00
Alon Zakai
a952a6fb14 Fix expected test output (#464)
Somehow CI did not run on #460
and the UI did not indicate that... weird. So
we had a typo in the text output
that was expected that went missed.
2020-04-09 16:19:00 -07:00
Nikolas Garofil
4dce416efa Docker fixes and updates (#461)
Dockerfile:
- Use the most recent stable debian (buster) instead of the previous one
- Build version 1.39.11 by default instead of 1.38.43
- Fix small typo in the comments

Makefile and README.MD: Fix incorrect name of image on dockerhub.
2020-04-06 08:58:16 -07:00
Dan Field
009ab2c77f Avoid re-downloading files that are already downloaded (#460)
* Writes a .emsdk_version file to output directories using the name (which contains a version number and/or hash) once all installation steps have completed successfully.
* If that file exists, skip downloading/installation hooks.
2020-04-01 13:46:22 -07:00
Sam Clegg
a490cd1222 Add llvm to git ignore (#457) 2020-03-23 15:29:00 -07:00
Sam Clegg
044f25f66e Use an actual hello world program to test in test.py (#456) 2020-03-20 11:23:26 -07:00
Alon Zakai
7e689a5061 1.39.11 (#455) 2020-03-20 08:44:40 -07:00
Alon Zakai
1bd7d54759 1.39.10 (#452) 2020-03-09 09:20:53 -07:00
Alon Zakai
86a4766a61 1.39.9 (#450) 2020-03-06 09:32:02 -08: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
Ayane Satomi
3264996587 Fix some grammar errors in README (#449) 2020-03-03 11:03:20 -08:00
Alon Zakai
1458145cf4 1.39.8 (#440)
Also fix MacOS CI by installing Python3
2020-02-14 09:07:32 -08:00
juj
5892e95b60 Fix Windows lookup for Python 3 (#439) 2020-02-13 22:22:17 +02:00
Diego Casorran
50df5a2983 Fix ZIP extraction on Windows. (#438)
Meant to resolve #412 (comment)
2020-02-12 14:01:50 -08:00
Sam Clegg
573278be09 Switch to python3 when installing python on windows installs. (#349) 2020-02-04 17:03:20 -08:00
Alon Zakai
801bef7d44 1.39.7 (#436) 2020-02-03 11:49:31 -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
deaa7e4bfd Hide npm output by default (#431)
Fixes: https://github.com/emscripten-core/emscripten/issues/10291
2020-01-28 17:12:31 -08:00
Sam Clegg
ba53d20e94 Use npm ci over npm install (#433)
Fixes: https://github.com/emscripten-core/emscripten/issues/10291

Also fix issue where an old/incorrect version of node could be used
during SDK install since we were preferring activated versions of node.
2020-01-28 14:32:36 -08:00
Sam Clegg
3532fd3924 Extract install_sdk and install_tool from install. NFC (#432)
This change simply splits this function into its two logical parts.
2020-01-28 10:36:16 -08:00
Sam Clegg
997b0a19ff Pass --no-audit to npm install (#426)
Fixes https://github.com/emscripten-core/emscripten/issues/10246
2020-01-21 09:22:15 -08:00
Alon Zakai
6bfbe2a7da 1.39.6 (#424) 2020-01-15 11:15:54 -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
Ron Wright
98ad15a3d7 Fix issue with Windows paths under MinGW versions of Python (#419) 2020-01-07 12:11:29 +02:00
Alon Zakai
3690139432 1.39.5 (#417) 2019-12-20 09:10:47 -08:00
juj
b7cde08f6c Remove old workaround that was there to restore %SystemRoot% in PATH on Windows systems that were affected by #4121. (#416) 2019-12-19 20:30:02 +02:00
juj
f72c6e9dec Add support for building with Visual Studio 2019 (#415) 2019-12-19 20:29:21 +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