Commit Graph

60 Commits

Author SHA1 Message Date
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
Sam Clegg
5c0e31a03a 2.0.25 (#850) 2021-06-30 10:24:41 -07:00
Attila Oláh
7f983966b3 Support linking with -o filename (#849)
When linking with `-o filename` (such as in various CMake build checks), the parameter passed to the linker is a temporary file, and it is passed as a bare filename (i.e. relative path without a `'/'`). In such cases, `outdir` would have been the empty string, and the final `tar` command would fail (actually the call to `subprocess.check_call(…)` is what fails).
2021-06-28 11:01:27 -07:00
Attila Oláh
eaa49511f4 Print sys.argv when link_wrapper.py is invoked incorrectly (#847)
This should help debug cases when the link_wrapper is not invoked correctly.
2021-06-24 09:05:34 -07:00
Sam Clegg
e2dc11e0db 2.0.24 (#839) 2021-06-10 09:02:19 -07:00
Sam Clegg
f44b841547 2.0.23 (#828) 2021-05-26 18:10:10 -07:00
Sam Clegg
c9157a9a54 2.0.22 (#827) 2021-05-25 07:21:40 -07:00
Derek Schuff
32fd1fafac 2.0.21 (#818) 2021-05-18 08:39:21 -07:00
Sam Clegg
ee63b9d5d6 2.0.20 (#815) 2021-05-06 14:31:10 -07:00
Sam Clegg
33ce2bdf2c 2.0.19 (#811) 2021-05-04 15:25:01 -07:00
Derek Schuff
cee96f8054 2.0.18 (#799) 2021-04-23 18:35:03 -07:00
Sam Clegg
f03f1dc579 2.0.17 (#786) 2021-04-10 17:41:55 -07:00
Sam Clegg
6162e2e783 2.0.16 (#773) 2021-03-25 19:00:07 -07:00
Tim Talashok
459f7c14f6 Update bazel readme (#774)
* Update bazel/README.md

* Add deps instantiation to readme

* Add bazelrc explanations to readme

* Note the preferred way of using bazel emsdk
2021-03-25 13:00:30 -04:00
Tim Talashok
c1589b5564 Use emsdk as external bazel dependency (#766)
* Makes provided bazel rules look up @emsdk workspace instead of local workspace
* Uses system-specific emscripten binaries instead of defaulting to linux
* Provides macros for loading emsdk dependencies (nodejs and emscripten binaries)
* Unhardcodes paths in bazel rules and .sh wrappers
* `update_bazel_workspace.sh` now updates `revisions.bzl`
* `emscripten_deps()` can be fed with specific emscripten version
* Adds external usage test

Addresses #650 and #696
2021-03-24 16:50:44 -07:00
walkingeyerobot
848260ed58 Bazel add html support (#765)
* allow the bazel toolchain to output html files

* allow for cc_binary rule names to end in .js

* fix python name

* continue to call emcc instead of em++ for now

* small cleanup

Co-authored-by: Mitch Foley <mitchfoley@chromium.org>
2021-03-21 20:08:54 -04:00
Tim Talashok
1a3878716f Remove absl from wasm_binary (#756)
* Remove absl from wasm_binary

* Formatting fixes

* Blank line, too

* Reorder imports
2021-03-12 13:28:55 -08:00
Sam Clegg
7cba2e0a92 2.0.15 (#743) 2021-03-05 23:18:22 -08:00
Sam Clegg
2b720e5473 2.0.14 (#710) 2021-02-14 11:46:10 -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
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
Sam Clegg
5ad9d720c3 2.0.12 (#680) 2021-01-09 07:25:52 -08:00