backport from main

This commit is contained in:
Corentin Le Molgat
2024-09-30 17:28:08 +02:00
committed by Mizux Seiha
parent 1dda1bd639
commit ef8716241a
213 changed files with 22043 additions and 2156 deletions

View File

@@ -13,8 +13,10 @@
"""Helper macro to compile and test code samples."""
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_test")
def code_sample_cc(name):
native.cc_binary(
cc_binary(
name = name + "_cc",
srcs = [name + ".cc"],
deps = [
@@ -24,7 +26,7 @@ def code_sample_cc(name):
],
)
native.cc_test(
cc_test(
name = name + "_cc_test",
size = "small",
srcs = [name + ".cc"],