Skip to content

Commit 833809c

Browse files
authored
Add support for Bazel 9 (#29)
The new version of Bazel demands that all rules related to C and C++ are loaded over rules_cc module.
1 parent f642ff5 commit 833809c

5 files changed

Lines changed: 5 additions & 8 deletions

File tree

examples/.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.4.2
1+
9.0.0

examples/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
"""Small C++ CLI application for sanity testing"""
1515

16-
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
16+
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test", "cc_shared_library")
1717

1818
cc_binary(
1919
name = "main_cpp",

examples/MODULE.bazel

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,13 @@ module(
1919
# *******************************************************************************
2020
# Common useful functions and rules for Bazel
2121
# *******************************************************************************
22-
bazel_dep(name = "bazel_skylib", version = "1.8.1")
22+
bazel_dep(name = "bazel_skylib", version = "1.8.2")
2323

2424
# *******************************************************************************
2525
# Constraint values for specifying platforms and toolchains
2626
# *******************************************************************************
2727
bazel_dep(name = "platforms", version = "1.0.0")
2828
bazel_dep(name = "score_bazel_platforms", version = "0.0.4")
29-
# git_override(
30-
# module_name = "score_bazel_platforms",
31-
# remote = "https://github.com/eclipse-score/bazel_platforms.git/",
32-
# commit = "583e52c58f1f110357aa93fcba3c01cbd7b51675",
33-
# )
3429

3530
# *******************************************************************************
3631
# C++ Rules for Bazel

templates/linux/cc_toolchain_config.bzl.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ load("@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl",
2424
"tool_path",
2525
"with_feature_set",
2626
)
27+
load("@rules_cc//cc:defs.bzl", "cc_common", "CcToolchainConfigInfo")
2728
load(":flags.bzl",
2829
"UNFILTERED_COMPILE_FLAGS",
2930
"DEFAULT_COMPILE_FLAGS",

templates/qnx/cc_toolchain_config.bzl.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ load("@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl",
2525
"tool_path",
2626
"with_feature_set",
2727
)
28+
load("@rules_cc//cc:defs.bzl", "cc_common", "CcToolchainConfigInfo")
2829
load(":flags.bzl",
2930
"UNFILTERED_COMPILE_FLAGS",
3031
"DEFAULT_COMPILE_FLAGS",

0 commit comments

Comments
 (0)