mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
## Why Binaries that do not consume build identity should not have their cached compilations invalidated by Git revisions or build timestamps. ## What changed Add `stamped_binaries` to `codex_rust_crate`, defaulting to an empty list. Only listed binaries enable stamping and receive `STABLE_GIT_COMMIT`. Opt in `codex`, `codex-tui`, and `codex-voice-host`. GitOrigin-RevId: 9bcac29f98f20129c988f696ce5b98057be7a158
24 lines
607 B
Python
24 lines
607 B
Python
load("//:defs.bzl", "MACOS_WEBRTC_RUSTC_LINK_FLAGS", "codex_rust_crate")
|
|
load("//bazel/platforms:release_binaries.bzl", "multiplatform_binaries")
|
|
load("//bazel/rules:e2e_benchmark.bzl", "codex_e2e_benchmark")
|
|
|
|
codex_rust_crate(
|
|
name = "cli",
|
|
crate_name = "codex_cli",
|
|
extra_binaries = [
|
|
"//codex-rs/bwrap:bwrap",
|
|
],
|
|
rustc_flags_extra = MACOS_WEBRTC_RUSTC_LINK_FLAGS,
|
|
stamped_binaries = ["codex"],
|
|
test_data_extra = glob(["src/**/snapshots/**"]),
|
|
)
|
|
|
|
multiplatform_binaries(
|
|
name = "codex",
|
|
)
|
|
|
|
codex_e2e_benchmark(
|
|
name = "codex-help",
|
|
binaries = [":codex"],
|
|
)
|