Skip to content

Commit 3bdf16a

Browse files
committed
[Bazel] Add bzl_library targets
1 parent 8fcd44a commit 3bdf16a

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module(
44
)
55

66
bazel_dep(name = "platforms", version = "0.0.9")
7+
bazel_dep(name = "bazel_lib", version = "3.0.0")
78
bazel_dep(name = "bazel_skylib", version = "1.6.1")
89
bazel_dep(name = "rules_python", version = "0.36.0")
910
bazel_dep(name = "picotool", version = "2.2.0")

bazel/toolchain/BUILD.bazel

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@bazel_lib//:bzl_library.bzl", "bzl_library")
12
load("@rules_cc//cc/toolchains:args.bzl", "cc_args")
23
load("@rules_cc//cc/toolchains:args_list.bzl", "cc_args_list")
34
load("@rules_cc//cc/toolchains:feature.bzl", "cc_feature")
@@ -331,3 +332,20 @@ _HOST_CPU_CONSTRAINTS = {
331332
}),
332333
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
333334
) for host_os, host_cpu in HOSTS]
335+
336+
bzl_library(
337+
name = "configurable_feature",
338+
srcs = ["configurable_feature.bzl"],
339+
deps = [
340+
"@rules_cc//cc/toolchains:toolchain_rules",
341+
],
342+
)
343+
344+
bzl_library(
345+
name = "objcopy",
346+
srcs = ["objcopy.bzl"],
347+
deps = [
348+
"@bazel_tools//tools/build_defs/cc:action_names",
349+
"@rules_cc//cc:find_cc_toolchain_bzl",
350+
]
351+
)

0 commit comments

Comments
 (0)