Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_foreign_cc", version = "0.13.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 = "8e5605dc2d16a4229cb8fbe398514b10528553ed4f5f7737b663fdd92f48e1c2",
strip_prefix = "rules_foreign_cc-0.13.0",
url = "https://github.com/bazel-contrib/rules_foreign_cc/releases/download/0.13.0/rules_foreign_cc-0.13.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://bazelbuild.github.io/rules_foreign_cc/0.13.0/flatten.html#rules_foreign_cc_dependencies
rules_foreign_cc_dependencies()
What's Changed
- Remove dependencies on rules_cc by @jsharpe in #1269
- Bump APR version to 1.7.5. Make CI/CD green again. by @dmitry-j-mikhin in #1273
- Fix for #1239 by @dmitry-j-mikhin in #1264
- runnable_binary: avoid using > on the output file by @novas0x2a in #1270
- Bazel CI config: explicitly enable workspace wherever Bzlmod is disabled by @Wyverald in #1276
- Support location expansion and make variable substitution in CMake cache entries by @allsey87 in #1272
- Fix for #1271, set_file_prefix_map attribute by @aaron-michaux in #1288
- add foreign_cc deps to cmake prefix path by @matt-sm in #1311
- fix undefined variables in the wrap_outputs script by @novas0x2a in #1278
- Fix documentation link in README.md by @bradneuman in #1301
- fix: builds using preinstalled_make no longer break during pkgconfig by @voxeljorge in #1307
- correct overeager slash conversion on windows by @novas0x2a in #1285
- feat: force GH Linguist syntax highlight by @jjmaestro in #1312
- Remove deprecated use of incompatible_use_toolchain_transition by @EdSchouten in #1314
- fix: move all bazelbuild links to bazel-contrib by @jjmaestro in #1315
- fix: move more bazelbuild links to bazel-contrib by @jjmaestro in #1317
- fix: docs pages by @jjmaestro in #1316
- fix: let 'toolchain' attr be selectable by @jsun-splunk in #1321
- feat: configurable ldflags by @jsun-splunk in #1226
- msvc: fix make var for windows deps by @jsun-splunk in #1324
- fix: doc pages (take 2!) by @jjmaestro in #1327
- fix(cmake): make sure link flags are propagated to module library builds by @jungleraptor in #1308
- chore: more precommit hooks by @jjmaestro in #1325
- chore: Update cmake versions by @jsharpe in #1331
- Add dependency on rules_shell by @jsharpe in #1337
New Contributors
- @dmitry-j-mikhin made their first contribution in #1273
- @Wyverald made their first contribution in #1276
- @aaron-michaux made their first contribution in #1288
- @bradneuman made their first contribution in #1301
- @voxeljorge made their first contribution in #1307
- @jjmaestro made their first contribution in #1312
- @EdSchouten made their first contribution in #1314
Full Changelog: 0.12.0...0.13.0