aboutsummaryrefslogtreecommitdiff
path: root/bindgen/3rdparty/crates/BUILD.libc-0.2.146.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen/3rdparty/crates/BUILD.libc-0.2.146.bazel')
-rw-r--r--bindgen/3rdparty/crates/BUILD.libc-0.2.146.bazel16
1 files changed, 12 insertions, 4 deletions
diff --git a/bindgen/3rdparty/crates/BUILD.libc-0.2.146.bazel b/bindgen/3rdparty/crates/BUILD.libc-0.2.146.bazel
index fc5234a7..2e8b4f9e 100644
--- a/bindgen/3rdparty/crates/BUILD.libc-0.2.146.bazel
+++ b/bindgen/3rdparty/crates/BUILD.libc-0.2.146.bazel
@@ -13,9 +13,13 @@ package(default_visibility = ["//visibility:public"])
rust_library(
name = "libc",
- srcs = glob(["**/*.rs"]),
+ srcs = glob(
+ include = ["**/*.rs"],
+ allow_empty = False,
+ ),
compile_data = glob(
include = ["**"],
+ allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
@@ -238,8 +242,11 @@ rust_library(
)
cargo_build_script(
- name = "libc_build_script",
- srcs = glob(["**/*.rs"]),
+ name = "libc_bs",
+ srcs = glob(
+ include = ["**/*.rs"],
+ allow_empty = False,
+ ),
crate_features = select({
"@rules_rust//rust/platform:aarch64-apple-darwin": [
"default", # aarch64-apple-darwin
@@ -401,6 +408,7 @@ cargo_build_script(
crate_root = "build.rs",
data = glob(
include = ["**"],
+ allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
@@ -427,6 +435,6 @@ cargo_build_script(
alias(
name = "build_script_build",
- actual = ":libc_build_script",
+ actual = ":libc_bs",
tags = ["manual"],
)