Commit Graph

228 Commits

Author SHA1 Message Date
Alon Zakai
bab28f9a71 list emscripten-releases versions in ./emsdk list (#268)
The output now looks like

===
The *recommended* precompiled SDK download is 1.38.34 (048cf9424790cc525a7ea6da340820aae226f3b9).

To install/activate it, use one of:
         latest                  [default (fastcomp) backend]
         latest-upstream         [upstream LLVM wasm backend]

Those are equivalent to installing/activating the following:
         1.38.34
         1.38.34-upstream

All recent (non-legacy) installable versions are:
         1.38.34
         1.38.34-upstream
         1.38.33
         1.38.33-upstream
===

and after that is the detailed output with the older builds etc.
2019-06-05 19:27:34 -07:00
Alon Zakai
fef3dacae0 support sdk-tag-X.Y.Z-64bit (we supported it without -tag-, but that did work before) (#267) 2019-06-05 14:31:44 -07:00
Alon Zakai
077a8b2b97 emsdk list fixes (#257)
List the recommended downloads (latest, latest-upstream) first, and with version and hash. Then list precompiled things, then list build-from-source things.

Remove old upstream-clang build from source, which has been incorrect since llvm switched to a monorepo anyhow. If we want the emsdk to support source builds of llvm, we'll need to fix that - however, as we can use plain upstream llvm anyhow, that shouldn't be hard for developers to build themselves (and normal users will get a precompiled version anyhow).

Remove the option to build fastcomp from source with wasm backend support, as it is horribly old there.

Noticed these issues in emscripten-core/emscripten#8728
2019-06-05 06:25:03 -07:00
Alon Zakai
a382d620e5 Stop fetching emscripten and binaryen tags the old way (#262)
We now have versioning directly here in this repo for emscripten-releases. This PR makes us stop looking for tags the old way, which looked on github for tags.

Rename the files legacy-*.
2019-06-04 10:16:02 -07:00
Alon Zakai
454bf4a7bb update repo name (#255) 2019-05-30 16:58:36 -07:00
Alon Zakai
515f46fae8 Change default emsdk download location to emscripten-releases/deps (#254)
Instead of from mozilla S3.

This should make the core python, java, node downloads work, as we have mirrored them to the new location. I think that should be everything - if we missed something, we will get an error, and so know we need to fix something.

(The non-deps downloads still use a full url to emscripten-releases in the manifest, which is not changed here.)

Also change the download location for old llvm builds to emscripten-releases/old/
2019-05-30 14:22:07 -07:00
Alon Zakai
0490c5f7aa Support getting specific releases from emscripten-releases, by their version (#251)
This makes

emsdk install 1.38.33

work (1.38.33 is from the new builders).

Also works with the old notation, sdk-1.38.33-64bit, and also supports -(upstream|fastcomp).
2019-05-29 14:14:42 -07:00
Alon Zakai
3595b073f3 Switch over to emscripten-releases for 'latest' (#250)
This makes emsdk [install|activate] latest get the latest fastcomp release from emscripten-releases, replacing our usage of the old mozilla build infrastructure.

This is only for "latest", so there should be no change to older releases.

This does remove non-release old stuff from the mozilla infrastructure, like "nightly" builds (that I don't think were even working?). After this PR, only old releases should be used from there.

Context: we've asked that people test the emscripten-releases builds for 1.38.33, and fixed a few issues people found. There are no open showstoppers, so this is us moving to the next step, serving latest builds from the new infrastructure.
2019-05-29 10:38:43 -07:00
Alon Zakai
76a5ae0b82 If an archive has not been downloaded, download it and assume its contents are new (#248)
This allows us to always unpack our builds into upstream/ or fastcomp/, instead of creating a new directory each time. Since without this, we'd get told to download a new file, and the emsdk would see that where it would be unpacked had contents, and assumed that even though it wasn't downloaded it must be the same. So we'd silently skip it.

It's useful to always unpack into the same dir since it's easier for people that create their own .emscripten file (the location of emscripten etc. is all fixed under the emsdk), and also it avoids directories accumulating, which each take hundreds of megabytes, so over time it can get burdensome.
2019-05-28 15:57:04 -07:00
Alon Zakai
7b8322f45e Remove waterfall integration (#246)
We can remove this now that we have emscripten-releases working and use it everywhere we used the emsdk's waterfall integration.

In particular this should fix the current lkgr.json errors people are seeing (by removing all the lkgr stuff), which I believe started when I refactored that code while doing the releases work - I must have gotten something wrong on non-linux OSes. But anyhow, easier to remove that unnecessary code than fix it at this point.
2019-05-24 14:04:43 -07:00
Alon Zakai
e1c8f791a9 Support for tip-of-tree (tot) builds (#245)
emsdk install tot-upstream will install the very latest build from emscripten-releases. These builds are useful for emscripten github CI.

There isn't a latest or lkgr for emscripten-releases currently. What this does instead is get the git repo, and check if builds exist for the latest commits there, returning the latest of those.

This also makes us not update the emscripten-version.txt file if we are not an actual version. That is, for a tot build we leave that file unchanged in the emscripten checkout.

There is also a tot-fastcomp for fastcomp.
2019-05-24 10:23:01 -07:00
Alon Zakai
de1134d8de Add emscripten-releases support for release tags (#243)
* Structures emscripten-releases-tags.txt to mention the latest release, and then a list of all previous releases.
* Adds a new release for 1.38.33.
* If the manifest has emscripten_releases_hash, then we write out emscripten-version.txt with the proper version. We start with the hash, and check if there is a released version for it, if so we emit that, otherwise we emit the hash.
* Windows zipfile fix.
2019-05-23 17:08:23 -07:00
Alon Zakai
7c9b5090bf Fix emsdk on python3 - the values() of a dict is a view there, not a list (#241)
Also add both python2 and 3 testing on CI here.

Fixes #240.
2019-05-23 11:01:49 -07:00
Alon Zakai
e2434062a8 Prepare for emscripten-releases (#237)
Updated to our current initial plan here:

* Add emscripten-releases-tags.txt which is a JSON file with a map of tag name to git hash in the emscripten-releases repo. Right now this file is just checked in here; in the future we may make the emsdk update it from git tags with update-tags etc.
* That file contains a "latest" tag, which is fetched for when getting latest-releases-[upstream|fastcomp]. We may want that to eventually be updated based on the latest green stuff on the bots perhaps.
* Rename the current sdk-[upstream|fastcomp]-* etc. to sdk-waterfall-[upstream\|fastcomp]-*. Then we'll have sdk-releases-[upstream|fastcomp]-* etc. This is just an internal name change - emsdk install latest-upstream still works as before, and still uses the waterfall (so we don't break our github CI).
* Add support for emsdk install latest-releases-[upstream\|fastcomp]
* Add a test using the actual emscripten-releases builds
2019-05-22 17:23:04 -07:00
Sam Clegg
fa6dc7bad8 Fix some flake8 warnings in emsdk (#224)
Only some checks are enabled here in order to make this change
easier to review and less error prone.
2019-04-29 15:39:20 -07:00
Alon Zakai
e5844d746e Add the lkgr as a prefix to upstream downloads (#223)
Without this, we would not download new versions, as the filename looked the same ("already downloaded"). We'd unzip those old contents to a directory with the new name, giving the impression we updated when we didn't :(
2019-02-25 17:18:58 -08:00
Alon Zakai
ea5d631a54 Deduplicate activated configs in the .emscripten file (#198)
While doing so, we:

* keep the latest activation (e.g., the user may have activated latest and then latest-upstream, then the upstream LLVM is what is desired).
* keep the order of keys fixed (so the relative order of lines in the .emscripten file is fixed)

This adds some assertions in the Dockerfile, to verify we have one LLVM_ROOT command, and it is the right one.

Fixes #194
2019-01-18 16:29:08 -08:00
Alon Zakai
5a8f59737d Remove wasm.js reference (#207)
We removed it in Binaryen #1858. The reference here broke source installs using the emsdk.

Fixes #206
2019-01-09 09:04:03 -08:00
Alon Zakai
38dcc11b1d Re-land #200 : waterfall fastcomp support (#204)
(This was reverted by mistake. It had a bad commit message though, so relanding with a nicer one is nice anyhow.)

With this, we can do emsdk install latest-fastcomp and it installs fastcomp from the waterfall. That is, we then have 3 main sdks people might want to use:

* latest which installs fastcomp-llvm (plus emscripten etc.) from the mozilla infrastructure. (fetches the last emscripten version there)
* latest-upstream which installs upstream-llvm (plus emscripten etc.) from the waterfall infrastructure. (fetches the last known good revision (lkgr) there)
* latest-fastcomp which installs fastcomp-llvm (plus emscripten etc.) from the waterfall infrastructure. (fetches the last known good revision (lkgr) there)

The first and last are currently somewhat overlapping in that both fetch a build of fastcomp. However, as we transition away from the mozilla infrastructure, we could just make latest an alias for latest-fastcomp. (And later, when we're ready to switch to the wasm backend by default, the alias could switch to latest-upstream.)
2019-01-08 13:46:53 -08:00
Alon Zakai
b0fda89ec2 Revert "Add 'latest-fastcomp' sdk (#200)" (#202)
This reverts commit b4de632f3f.

This caused the ec2 mozilla builders to fail due to bundling lkgr.json. Reverting til we figure it out.
2019-01-08 13:28:17 -08:00
Alon Zakai
b4de632f3f Add 'latest-fastcomp' sdk (#200)
* add a 'fastcomp' sdk, which provides fastcomp from the waterfall

* fix

* fix

* fix?

* fix

* fix

* fix

* logging

* fix?

* cleanup
2019-01-08 12:37:39 +02:00
Alon Zakai
889c1516fb Enable "emsdk [install|activate] latest-upstream" (#195)
This makes it possible to tell the emsdk to get "latest-upstream", which fetches the latest lkgr from there. This will probably be a common use pattern, I expect we may want to recommend users start trying out the wasm backend that way soon. This will also let us simplify this code: https://github.com/kripken/emscripten/blob/incoming/.circleci/config.yml#L334

Aside from adding the "latest-upstream" alias, this PR has

* A few minor cleanups in the emsdk code.
( Minor restructuring of how we define the upstream stuff in the manifest: It seemed odd to have 3 things (clang, emscripten, binaryen) that are all coming from a single archive from the waterfall. Simpler to have just one - the archive is one big lump, there's no way to download just part of it.
* Also add node 8.9.1 as a dependency of the upstream sdk, which makes things usable out of the box (node.js is the one thing not provided by the waterfall archive).
2018-12-20 09:58:37 -08:00
Jukka Jylänki
7a0e27441e Fix vswhere search for msbuild on Python 3, and demote pywin32 as optional when only enabling emsdk for current command prompt instance. Fixes #177 2018-10-23 14:52:40 +03:00
Jukka Jylänki
0d8576c0e8 Micro-cleanup TTY_OUTPUT global declaration 2018-08-19 16:39:58 +03:00
juj
d8066153ea Merge pull request #168 from sbc100/tty_option
Add --notty to force non-erasing progress bar
2018-08-19 16:31:04 +03:00
Sam Clegg
8b168a47ca Add --notty to force non-erasing progress bar
This is useful in CI environments that claim to be TTYs but
really don't have escape characters such as \r correctly.
2018-08-16 14:14:58 -07:00
juj
857f418f9f Merge pull request #164 from jgravelle-google/waterfall_lkgr
Add upstream waterfall tools and sdk
2018-07-25 19:10:34 +03:00
Jukka Jylänki
23dba8d27b Remove redundant checking for hasattr(self, 'activated_env') since activated_environment() function already does that. Also change activated_environment() to return a pre-split list instead of a string that caller is expected to split. 2018-07-20 10:02:55 +03:00
Jukka Jylänki
cac082054a Add support for multiple environment items to be present in activated_env, separated by semicolon ;. 2018-07-19 12:19:20 +03:00
Jacob Gravelle
c475b565ad Add upstream waterfall tools and sdk 2018-07-18 09:27:20 -07:00
Alon Zakai (kripken)
ff627992cb binaryen.js is no longer bundled in binaryen, and emscripten doesn't need it anyhow (it's for handwritten js users) 2018-07-05 15:09:29 -07:00
Jacob Gravelle
3310027d35 Use only_supports_wasm flag instead of separate install script 2018-06-20 09:07:48 -07:00
Jacob Gravelle
16125272b2 Support for building upstream LLVM from source 2018-05-30 16:41:59 -07:00
Jukka Jylänki
a4474e59db Improve emsdk on MSYS2. 2018-05-09 09:55:33 +03:00
Jukkaj Jylanki
72f6f67ade If win_get_environment_variable fails due to win32api module not being present, gracefully fail out. Recognise MINGW64 as an MSYSTEM, and behave like MSYS even when MSYSTEM is set, but is of another flavor. (even when untested) 2018-04-17 16:09:34 +03:00
Jukka Jylänki
313d5ef651 Disable support for Nightly builds 2018-03-07 17:39:00 +02:00
Jukka Jylänki
ab4bbdc6a5 Fix a bug where precompiled list of SDKs would not attempted to be downloaded if git was not present on the system. Fixes https://github.com/kripken/emscripten/issues/6165. 2018-01-31 21:23:42 +02:00
juj
2324e5d8f4 Merge pull request #128 from saschanaz/versionkey-py3
Python 3: version_key() should return list
2018-01-11 19:15:14 +02:00
Kagami Sascha Rosylight
e3653c2f21 version_key should be list on py3 2018-01-11 20:03:17 +09:00
Jukka Jylänki
2314fe9db8 Improve console message about 'emsdk activate' when called but it fails to activate any tools. 2018-01-09 16:34:28 +02:00
Jukka Jylänki
359b72dbb5 Fix permanently_activate -> arg_global. 2018-01-04 20:19:39 +02:00
Jukka Jylänki
6ca9d525c2 Merge remote-tracking branch 'remotes/saschanaz/key'
# Conflicts:
#	binaryen-tags.txt
#	emscripten-tags.txt
2018-01-04 14:23:05 +02:00
Jukka Jylänki
326606f5aa Document --uses and make it a bit more flexible with --old. #125. 2018-01-04 14:14:48 +02:00
juj
ae40344624 Merge pull request #125 from umeboshi2/list-sdk-depends
list sdk depends
2018-01-04 14:15:55 +02:00
Jukka Jylänki
f3ac553081 Pass -DHAVE_FUTIMENS=0 when building with old macOS < 10.13 SDK to avoid LLVM build system issue 2018-01-03 22:38:11 +02:00
Jukka Jylänki
87ddafd439 Add fallback which('MSBuild.exe') to Visual Studio MSBuild search 2018-01-03 13:52:01 +02:00
Joseph Rawson
8da4907dbf list sdk depends 2018-01-02 20:03:26 -06:00
Kagami Sascha Rosylight
2d5ae01d8c prefer key for sorting 2017-12-22 11:27:02 +09:00
Jukka Jylänki
736895b0c6 Unzip .tar.xz packages 2017-11-23 17:19:14 +02:00
Jukka Jylänki
efbbba6b62 Optimize emsdk operation 2017-11-23 16:46:27 +02:00