mirror of
https://github.com/openai/codex.git
synced 2026-04-27 16:15:09 +00:00
## Summary - restore the `#16634` `lzma-sys` / `xz` Bazel wiring that was reverted from `main` - re-enable direct Bazel linkage to `@xz//:lzma` with the `lzma-sys` build script disabled - restore the matching `MODULE.bazel.lock` entries ## Why `origin/main` currently builds `//codex-rs/cli:cli` on a devbox, but `bazel run //codex-rs/cli:codex -- --version` fails at link time on the same remote path. Restoring `#16634` fixes that repro. ## Validation - on `origin/main`: `bazel build --bes_backend= --bes_results_url= //codex-rs/cli:cli` passed - on `origin/main`: `bazel run --bes_backend= --bes_results_url= //codex-rs/cli:codex -- --version` failed on `dev` - after this patch on the same `dev` mirror: `bazel run --bes_backend= --bes_results_url= //codex-rs/cli:codex -- --version` passed and printed `codex 0.0.0` --------- Co-authored-by: Codex <noreply@openai.com>
15 lines
379 B
Diff
15 lines
379 B
Diff
diff --git a/BUILD.bazel b/BUILD.bazel
|
|
--- a/BUILD.bazel
|
|
+++ b/BUILD.bazel
|
|
@@ -154,6 +154,9 @@ cc_library(
|
|
],
|
|
copts = select({
|
|
- "@platforms//os:windows": [],
|
|
+ "@platforms//os:windows": [
|
|
+ "-fno-stack-protector",
|
|
+ "-mno-stack-arg-probe",
|
|
+ ],
|
|
"//conditions:default": ["-std=c99"],
|
|
}),
|
|
defines = select({
|