Commit Graph

792 Commits

Author SHA1 Message Date
Sam Clegg
102e02252b Move error reporting when git is not found during update-tags (#728)
update-tags is called from two places `update-tags` itself and also
as as part of `update`.   Silently ignoring the absence of git should
only happen in the later case.   If the user explicitly ask for
update-tags we should hard fail as normal.
2021-02-25 16:34:56 -08:00
Jia Yuan Lo
63b6cd2a4e Allow system npm in "emsdk install emscripten" (#723)
"emsdk install emscripten-master-64bit" is currently dependent on
whether emscripten node is installed or not.

This change allow using system-provided node / npm command to proceed
the installation. Also clarify the error message.
2021-02-23 11:18:28 -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
2b720e5473 2.0.14 (#710) 2021-02-14 11:46:10 -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
Sam Clegg
8b32b7def8 Cleanup handling of old prebuild SDK tags (#697)
- Remove empty llvm-tags-32bit.txt
- Remove code that executes if llvm-tags-64bit.txt is missing (it
  can't be since its checked in these days).
- Cleanup load_file_index_list

I verfied manually that llvm_precompiled_tags* list are identical
before and after this change.
2021-02-08 15:01:14 -08:00
walkingeyerobot
ba7fad312b make hello world simd a bit cleaner (#701) 2021-02-08 15:34:32 -05:00
Sébastien Jalliffier Verne
45cd9dfc0f Fix: wrong clang path in Bazel toolchain (#699) (#700) 2021-02-07 11:51:36 -08:00
Sam Clegg
cfdcf1315b Release 2.0.13 and update bazel toolchain (#694)
This change comes with fairly major change to the bazel toolchain.

- Use pre-built cache that comes with emsdk
- Mark cache as readonly using FROZEN_CACHE
- Pass `--sysroot` to match upstream emscripten change
2021-01-29 18:25:41 -08:00
Sam Clegg
2c086de21e Remove redundant testing/downloading (#695)
We have mac linux and windows bots that run this script
on each of those platforms.  This script already runs
`install latest` so there is no need to re-download these
three different archives on each platform.
2021-01-29 16:25:24 -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
Leven
5fd6f034fe fix: bazel/emscripten_toolchain/wasm_binary.py command output without mimetype on MacOS. (#682)
Co-authored-by: xulinfeng <xulinfeng@bilibili.com>
2021-01-26 14:17:30 -05: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
5ad9d720c3 2.0.12 (#680) 2021-01-09 07:25:52 -08:00
Zhang Fan
4def4da4d4 fix sln parsing form vs2019 (#679) 2021-01-05 04:27:16 -08:00
Derek Schuff
5fd57ff723 2.0.11 (#670) 2020-12-17 14:47:38 -08:00
Harald Reingruber
8234fb3b95 Add git-lfs package to emsdk Docker image (#665)
Having LFS support already in the image saves some build time and allows a more consistent experience to other CI build images.
2020-12-11 13:26:07 -08:00
Sam Clegg
ec9c1c45f5 2.0.10 (#664) 2020-12-04 08:53:37 -08:00
Sam Clegg
62fb1718b8 Remove used arg in scripts/test.bat (#659)
I have no idea why this argument was included when this
script was first added.  `emsdk_env.bat` does not even pass
its argument into `emsdk.py` so this argument has no effect
here.
2020-11-30 17:44:53 -08:00
Sam Clegg
aa5fedfe29 Increate download chunk size of 256k (#657)
With 8k the download status if updated way faster than is
necessary.
2020-11-25 13:41:59 -08:00
Alon Zakai
372fb50124 2.0.9 (#653) 2020-11-16 14:58:38 -08:00
juj
8f2f5e3435 Fix regression where reinstalling tools from git sources would not git pull and rebuild them. (#647) 2020-11-08 14:52:43 +02:00
Amin Yahyaabadi
40780130aa fix: emsdk swallows/overwrites parts of PATH (#642)
This PR has three changes: 

1) Fixing --permanent flag:
The previous algorithm looped over the values of PATH 4 times to check conditions while these conditions are the opposite of each other. Also, the result did not include all the parts in the whole_path. 

	I have combined these loops and fixed the algorithm, so no path is lost. Now using --permanent the PATH and Env variables are correctly updated.

2) Fixing --system flag:
Now, the system flag does not cause the PATH values to be overwritten/clobbered. The PATH/Env variables are correctly updated.

3) Fixing flagless flag:
When no flag is provided the value of process/shell is correctly updated and preserved.

This adds the tests for all the situations.

Fixes #634
Fixes #645
2020-10-30 20:57:15 -07:00
Sam Clegg
4a695be348 circleci: Add explict version to setup_remote_docker. NFC. (#646)
Apparently we are supposed to do this:
 https://discuss.circleci.com/t/old-linux-machine-image-remote-docker-deprecation/37572
2020-10-27 12:59:50 -07:00
Alon Zakai
f3e2e43213 2.0.8 (#643) 2020-10-24 10:42:23 -07: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
Alon Zakai
da9419f42a 2.0.7 (#641) 2020-10-13 06:51:20 -07:00
Chris Savoie
4fe6e492c0 Fix environment variables to be consistently set when using --system or --permanent (#515)
Also switch PostMessage to SendMessageWithTimeout and only send one if
environment variables actually changed.

Also, enable and fix --permanent unit tests.
2020-10-09 12:58:59 -07:00
Dannii Willis
107dc62dd7 Skip installing optional npm deps, but manually install Closure Compiler native package (#636)
Follow on to #625, #630, #632, #633
Fixes emscripten-core/emscripten#12406
2020-10-08 18:28:43 -07:00
Amin Yahyaabadi
53c184e8d3 Avoid pywin32 dependency on Windows (#635)
Instead use winreg/_winreg for the registry and ctypes for the
SendMessage call
2020-10-07 08:01:03 -07:00
Alon Zakai
31f5f842ff Revert "Skip installing optional npm deps, but manually install Closure Compiler native package (#630)" (#633)
This reverts commit 47b7f850f2.

Fixes #632
2020-10-06 07:42:46 -07:00
Dannii Willis
47b7f850f2 Skip installing optional npm deps, but manually install Closure Compiler native package (#630)
Follow on to https://github.com/emscripten-core/emsdk/pull/625
Fixes https://github.com/emscripten-core/emscripten/issues/12406
2020-10-05 18:12:56 -07:00
Alon Zakai
aec1e16f51 2.0.6 (#629) 2020-10-02 15:16:44 -07:00
M.T. McParlane
e899a6fd5a Fix issue where MSYS2 and MinGW mistaken for Linux (#628)
When running `emsdk.py` with python provided by MSYS2/MinGW the environment gets falsely identified as Linux.

See discussion for details:
https://github.com/emscripten-core/emscripten/issues/12376#issuecomment-702245993

Fixes #385
2020-10-01 12:32:16 -07:00
Chris Savoie
8ca8591e2b Fix `The system cannot find the drive specified. due to ::` style comments used in function block in emsdk.bat (#627) 2020-09-30 15:24:37 -07:00
Amin Yahyaabadi
807e55cbec Set user environment variables permanently by using --permanent + deprecate --global (#621) 2020-09-29 22:15:22 -07:00
Alon Zakai
7e841b59fc 2.0.5 (#625) 2020-09-28 15:25:14 -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
Sam Clegg
f8e0b49c24 Clear PYTHONHOME when using bundled python (#600)
Fixes: #598
2020-09-17 15:38:54 -07:00
Sam Clegg
843c1955fa Remove unused parameter (#611) 2020-09-16 15:48:55 -07:00
Alon Zakai
88b4ec6592 2.0.4 (#619) 2020-09-16 08:14:41 -07:00
Amin Yahyaabadi
edc53e7a0a Add missing python locations to emsdk.ps1 (#615) 2020-09-15 15:14:52 -07:00
walkingeyerobot
a94f2fe06c update bazel workspace for emscripten 2.0.3 (#613)
* update bazel workspace for emscripten 2.0.3

* test to make sure WORKSPACE is up to date

* make it clear what happened when WORKSPACE is out of date

* intentionally add error to make sure circleci fails properly

* revert intentionally bad commit

* increase visibility of failure message

Co-authored-by: Mitch Foley <mitchfoley@google.com>
2020-09-11 20:15:19 -04:00
walkingeyerobot
5f630def2a add a wasm bazel toolchain (#603) 2020-09-10 18:42:46 -07:00
Alon Zakai
def6e4903a 2.0.3 (#612) 2020-09-10 18:28:21 -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
bfdfd61656 Fix sanity file generation in Dockerfile (#610)
We no longer ship the sanify file as part of the SDK but
expect it be generated on first use:
  https://github.com/WebAssembly/waterfall/pull/656

Also remove the Dockerfile itself from the docker image if
we include it then whenever you change anything in the
Dockerfile it invalides all the layers and forces a
completely rebuild.  This makes iterating on the image
very slow.
2020-09-10 16:14:40 -07:00
j-jorge
81dd2232e1 Parse the releases info only once in emsdk.py. (#607)
Co-authored-by: Julien Jorge <julien.jorge@stuff-o-matic.com>
2020-09-10 06:29:19 -07:00
Anmol Sethi
0eb40e10a2 Make emsdk_env.sh work under set -o nounset (#605)
Closes emscripten-core/emscripten#6743
2020-09-07 07:32:22 -07:00