Repository navigation
Using Bzlmod
- Enable with
common --enable_bzlmodin.bazelrc. - Add to your
MODULE.bazelfile:
bazel_dep(name = "rules_foreign_cc", version = "0.17.0")Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_foreign_cc",
sha256 = "3d089c46c1bbd7da10446de457ae3cfbe7b0cfae8836d6225f62a15c90134caa",
strip_prefix = "rules_foreign_cc-0.17.0",
url = "https://github.com/bazel-contrib/rules_foreign_cc/releases/download/0.17.0/rules_foreign_cc-0.17.0.tar.gz",
)
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
# This sets up some common toolchains for building targets. For more details, please see
# https://bazel-contrib.github.io/rules_foreign_cc/0.17.0/flatten.html#rules_foreign_cc_dependencies
rules_foreign_cc_dependencies()
# If you're not already using bazel_skylib, bazel_features or rules_python,
# you'll need to add these calls as well.
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
load("@bazel_features//:deps.bzl", "bazel_features_deps")
bazel_features_deps()
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()What's Changed
- prebuilt_toolchains: transform archive digests from sha256 to integrity by @vadikmironov in #1593
- prebuilt ninja: map the Windows arm64 archives by @vadikmironov in #1592
- prebuilt cmake: map the Windows arm64 archives (+ the two ninja rows from #1592) by @vadikmironov in #1597
- m4: require 1.4.21.bcr.5 for MSVC with rules_cc 0.2.19 or later by @vadikmironov in #1598
- Add a
customtool mode and restoresourceto mean bootstrap by @UebelAndre in #1596 - Add meson_tool_toolchain: PYTHON3, MESON_REAL and PYTHONPATH for meson by @UebelAndre in #1599
- Stage a toolchain's tool targets for rules that list its hub in
toolchainsby @UebelAndre in #1600 - Add CI for Bazel 9 by @UebelAndre in #1602
- Only ignore macOS AR if it is libtool by @keith in #1564
- Fix --incompatible_auto_exec_groups usage by @keith in #1604
- Preserve Clang system header flags in bootstrap compilers by @cerisier in #1603
- Detect
libtoolwhen it exists asllvm-libtool-darwinby @jez in #1601 - Update BCR release metadata by @UebelAndre in #1605
- Drop
PWDfrom the cc_toolchain environment by @UebelAndre in #1606 - Update BCR pins by @UebelAndre in #1607
- Added rules_shellcheck similarly to rules_shell by @UebelAndre in #1609
- Update BCR pins by @UebelAndre in #1610
- Release 0.17.0 by @UebelAndre in #1608
New Contributors
- @vadikmironov made their first contribution in #1593
- @cerisier made their first contribution in #1603
- @jez made their first contribution in #1601
Full Changelog: 0.16.0...0.17.0