mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
Bazel: skip aws-lc-sys memcmp check
This commit is contained in:
@@ -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
|
||||
|
||||
14
patches/aws-lc-sys-skip-memcmp.patch
Normal file
14
patches/aws-lc-sys-skip-memcmp.patch
Normal 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();
|
||||
+ }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user