Skip to content

Commit 853a78a

Browse files
authored
Merge pull request #1845 from GoogleContainerTools/rules_cc
use rules_cc
2 parents 8dc3180 + 98d0400 commit 853a78a

File tree

3 files changed

+17
-108
lines changed

3 files changed

+17
-108
lines changed

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ bazel_dep(name = "container_structure_test", version = "1.16.0")
1313
bazel_dep(name = "rules_oci", version = "1.7.5")
1414
bazel_dep(name = "rules_distroless", version = "0.3.8")
1515
bazel_dep(name = "rules_python", version = "0.35.0")
16+
bazel_dep(name = "rules_cc", version = "0.2.0")
1617

1718
### OCI ###
1819
oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")

MODULE.bazel.lock

Lines changed: 14 additions & 107 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

private/oci/cc_image.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
load("@rules_oci//oci:defs.bzl", "oci_image")
22
load("@rules_pkg//:pkg.bzl", "pkg_tar")
3+
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
34

45
def cc_image(name, srcs, base):
5-
native.cc_binary(
6+
cc_binary(
67
name = "%s_binary" % name,
78
srcs = srcs,
89
)

0 commit comments

Comments
 (0)