Commit Graph

83 Commits

Author SHA1 Message Date
Sam Clegg
8281708351 3.1.15 (#1066) 2022-07-01 08:36:40 -07:00
Sam Clegg
517e02fac8 3.1.14 (#1061) 2022-06-20 08:53:10 -07:00
Kevin Lubick
311acff345 [bazel] Add additional files necessary for building with closure and on RBE (#1057) 2022-06-07 10:48:37 -07:00
Sam Clegg
3d86ccb425 3.1.13 (#1055) 2022-06-02 18:14:57 -07:00
Sam Clegg
62d817b66d 3.1.12 (#1054) 2022-05-26 21:39:21 -07:00
Sam Clegg
b3ca5a4900 3.1.11 (#1053) 2022-05-22 11:24:36 -07:00
Ezekiel Warren
71f5fb0247 Explicit outputs for wasm_cc_binary (#1047)
* Explicit outputs for wasm_cc_binary

* Backwards compatibility

* data_runfiles restore

* restore test_bazel.sh

* Using wrong path on accident

* two separate rules for legacy support

* Added name attribute to wasm_cc_binary rule
2022-05-20 01:09:46 -04:00
walkingeyerobot
bba3aa9c8f include node modules glob with linker files. also some minor formatting fixes. (#1052) 2022-05-19 14:31:12 -07:00
John Firebaugh
93f21c9ef3 Optimize sandbox performance (#1045)
* Optimize sandbox performance

Link just the files needed to compile, link, or archive, rather than the entire directory tree. This drastically improves build times on macOS, where the sandbox is known to be slow (https://github.com/bazelbuild/bazel/issues/8230).

* Linux wants clang to link

* all_files not needed?

* Linux wants llc

* And llvm-ar

* Templated build_file_content
2022-05-09 14:30:43 -04:00
Sam Clegg
891b449141 3.1.10 (#1046) 2022-05-04 08:06:46 -07:00
Kevin Lubick
d8a1f6c637 [bazel] Set CLOSURE_COMPILER to workaround RBE+symlinks issue (#1037)
* [bazel] Set CLOSURE_COMPILER to workaround RBE+symlinks issue

* space

* specify node_js
2022-04-27 13:13:53 -04:00
Sam Clegg
e34773a0d1 3.1.9 (#1039) 2022-04-22 00:29:21 +00:00
John Firebaugh
e23aac7d1c Fix https://github.com/emscripten-core/emsdk/issues/1020 (#1035) 2022-04-14 15:22:36 -04:00
Sam Clegg
2346baa7bb 3.1.8 (#1016) 2022-03-25 00:38:04 -07:00
Piotr Sikora
0ea8f8a870 Provide "executable" in wasm_cc_binary's DefaultInfo. (#998)
This is needed to allow custom rules and/or transitions on top of wasm_cc_binary (e.g. to workaround #972).

It's debatable whether .wasm is the correct executable target for non-standalone Wasm builds, but we don't have a way to differentiate those in wasm_cc_binary, and considering that this attribute isn't exported now, it shouldn't break anything.
2022-03-09 07:09:39 -08:00
Sam Clegg
1b8cb739e0 3.1.7 (#997) 2022-03-07 08:19:27 -08:00
Sam Clegg
15fc2b4efe 3.1.6 (#992) 2022-02-24 08:47:27 -08:00
Sam Clegg
f33e229bb1 3.1.5 (#990) 2022-02-17 20:42:22 -08:00
Kevin Lubick
600dc4d912 Add closure example for wasm_cc_binary (#941)
* Stub out addition of closure_externs_file option in wasm_cc_binary

* WIP

* args are passed, externs cannot be found

* try location

* update tests
2022-02-17 13:16:18 -05:00
Derek Schuff
d7d8fef23e 3.1.4 (#988)
Update emscripten-releases tags, and update Bazel include paths to match the new clang version number.
2022-02-14 18:12:25 -05:00
Matthew Soulanille
bc6209b6dc Support Bazel builds on Apple silicon (#978)
* Support Bazel builds on Apple silicon

* Add sha_mac_arm64 hash for 3.1.3

* Configure node_repositories in emscripten_deps.bzl

* Add mac arm64 to bazel workspace update script

Co-authored-by: Matthew Soulanille <matthew@guppy.home>
2022-02-11 14:18:16 -05:00
Sam Clegg
fc645b7626 3.1.3 (#979) 2022-01-31 09:35:26 -08:00
Sam Clegg
476a14d60d 3.1.2 (#973) 2022-01-21 10:39:10 -08:00
Piotr Sikora
61c35abc7a Don't advertise "per_object_debug_info" feature in Bazel. (#969)
It breaks @emsdk in workspaces that have this feature enabled.

The following error appears when using the latest commit:

    cc_toolchain '@emsdk//emscripten_toolchain:everything' with
    identifier 'emscripten-wasm' doesn't define a tool path for 'dwp'

The following error appears after adding `emdwp` tool and scripts:

    output '*.dwo' was not created

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2022-01-19 18:45:46 -05:00
Piotr Sikora
23b3e18db8 Allow @emsdk to be imported in a non-x86_64 host. (#970)
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2022-01-19 18:44:08 -05:00
Piotr Sikora
7eecde8afc Fix building rules_foreign_cc targets in Bazel. (#968)
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2022-01-16 15:20:53 -05:00
Sam Clegg
2c09626c34 3.1.1 (#965) 2022-01-10 10:00:22 -08:00
Sam Clegg
8e7b714a0b 3.1.0 (#955) 2021-12-22 15:48:24 -08:00
Sam Clegg
faf9a33f12 Fix for windows checksum in bazel/revisions.bzl. NFC (#954)
I'm not sure how that wrong was added by the create_release script.
2021-12-22 07:34:26 -08:00
Ezekiel Warren
774b871eca Bazel Windows Support (#929) 2021-12-20 14:24:56 -05:00
Sam Clegg
3f3008647d 3.0.1 (#949) 2021-12-17 14:58:10 -08:00
Brad Kotsopoulos
a7e4653c22 Canonical optimization levels in bazel toolchain (#940) 2021-12-06 13:20:14 -05:00
walkingeyerobot
c7305b4045 Always output a tarball from cc_binary to simplify logic. (#936)
* Always output a tarball from cc_binary to simplify logic. This will change the result of --config=wasm builds that were previously outputting a single file.

* better to use early return here

* Always output a tarball from cc_binary to simplify logic. This will change the result of --config=wasm builds that were previously outputting a single file.

* better to use early return here

Co-authored-by: Mitch Foley <mitchfoley@chromium.org>
2021-12-01 15:26:16 -08:00
Sam Clegg
846f683bea 3.0.0 (#939) 2021-11-22 15:09:10 -08:00
Sam Clegg
3acac70a55 2.0.34 (#925) 2021-11-04 14:53:04 -07:00
Sam Clegg
044d620ff2 2.0.33 (#922)
I add to temporarily disable the test_binaryen_from_source test
under macOS to work around:
https://github.com/WebAssembly/binaryen/issues/4299
2021-11-01 15:30:30 -07:00
Kevin Lubick
85d27a4a2a Improve flags in bazel example (#917) 2021-10-24 09:22:52 -07:00
Sam Clegg
1c420fd6e5 2.0.32 (#915) 2021-10-19 17:55:27 -07:00
Kevin Lubick
40882443a1 Update build_bazel_rules_nodejs to fix closure compiles (#912)
* Update build_bazel_rules_nodejs to fix closure compiles

* Fix spacing in update_bazel_workspace.sh script

* space
2021-10-19 14:44:48 -07:00
Kevin Lubick
f8615b4782 Run buildifier on bazel/ (#913) 2021-10-19 15:56:55 -04:00
Kevin Lubick
773e4f955d Add embind example to Bazel docs (#910)
* Add embind example to Bazel docs

* address feedback
2021-10-14 13:49:36 -04:00
walkingeyerobot
7f39d100d8 bazel: pass -g instead of -g4 for wasm_asan feature (#904) 2021-10-13 08:07:14 -07:00
Sam Clegg
3891e7b04b 2.0.31 (#906) 2021-10-01 16:02:25 -07:00
Derek Schuff
b946a4786a 2.0.30 (#893) 2021-09-15 12:03:43 -07:00
Brad Kotsopoulos
cf706316f5 [Bazel] fix llvm bin path (#888) 2021-09-09 00:46:25 -07:00
Derek Schuff
f9dee6673e Version 2.0.29 (#878) 2021-08-27 17:27:29 -07:00
Danny B
e82ac4ec1f Small fix for Bazel instructions. (#875)
In the past the instructions were to copy `emscripten_toolchain` into the project dir, now it downloads emsdk as a package so the `bazelrc` part has to refer to `@emsdk`.
2021-08-26 15:18:08 -04:00
Derek Schuff
793557c615 2.0.28 (#871) 2021-08-23 13:37:00 -07:00
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
Sam Clegg
a3d65c80d3 2.0.26 (#858) 2021-07-26 15:26:01 -07:00