Using Bzlmod
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_foreign_cc", version = "0.14.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 = "e0f0ebb1a2223c99a904a565e62aa285bf1d1a8aeda22d10ea2127591624866c",
strip_prefix = "rules_foreign_cc-0.14.0",
url = "https://github.com/bazel-contrib/rules_foreign_cc/releases/download/0.14.0/rules_foreign_cc-0.14.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.14.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()
What's Changed
- Pin Bazel version back to 7.4.1 by @UebelAndre in #1350
- Added README describing toolchain patches by @UebelAndre in #1349
- fix:
pyc
files in Mesonmesonbuild
repo causing rebuilds by @jjmaestro in #1343 - Added formatting checks for C/C++ and python code by @UebelAndre in #1348
- fix: CMAKE_MODULE_LINKER_FLAGS_INIT breaks macos builds by @jsun-splunk in #1344
- Simplify docs by @UebelAndre in #1351
- Added rust example by @UebelAndre in #1354
- framework: avoid forced path suffixing by @novas0x2a in #1346
- Upgrade rules_python to version 1.1.0-rc0 by @jsharpe in #1355
- Move protobuf to a dev dependency by @UebelAndre in #1363
- add cmake configuration attr by @matt-sm in #1339
- Release 0.14.0 by @UebelAndre in #1364
Full Changelog: 0.13.0...0.14.0