Bazel: skip aws-lc-sys memcmp check

This commit is contained in:
viyatb-oai
2026-01-12 18:32:07 -08:00
parent 74d748cefb
commit 0dd709317f
2 changed files with 19 additions and 0 deletions

View File

@@ -94,7 +94,12 @@ crate.annotation(
crate = "aws-lc-sys",
build_script_env = {
"AWS_LC_SYS_CMAKE_BUILDER": "0",
"AWS_LC_SYS_SKIP_MEMCMP_CHECK": "1",
},
patch_args = ["-p1"],
patches = [
"//patches:aws-lc-sys-skip-memcmp.patch",
],
)
# Fix readme inclusions

View File

@@ -0,0 +1,14 @@
diff --git a/builder/cc_builder.rs b/builder/cc_builder.rs
index 6ed6915..a0910cc 100644
--- a/builder/cc_builder.rs
+++ b/builder/cc_builder.rs
@@ -701,7 +701,9 @@ impl CcBuilder {
cc_build.define("AWS_LC_URANDOM_NEEDS_U32", Some("1"));
}
}
- self.memcmp_check();
+ if !env_var_to_bool("AWS_LC_SYS_SKIP_MEMCMP_CHECK").unwrap_or(false) {
+ self.memcmp_check();
+ }
}
}