Commit Graph

7 Commits

Author SHA1 Message Date
Robbert van Ginkel
04944ddff6 Add linux/arm64 support to bazel rules (#1156)
* Add linux/arm64 support to bazel rules

* Make linux arm64 sha optional and PR feedback

Not all releases have linux shas. Use getattr to default to no sha if none was
present. This way non linux arm64 builds should not fail.

* Update linux arm64 sha for 3.1.33

This is the latest arm64 release according to #1204. There do not seem to be a any releases between .21 and .33.
2023-03-30 15:43:42 -04:00
John Firebaugh
005063304b [bazel] Switch to platforms-based toolchain resolution (#1036) 2022-11-08 14:21:06 -08: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
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
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
Kevin Lubick
f8615b4782 Run buildifier on bazel/ (#913) 2021-10-19 15:56:55 -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