Make Bazel binary stamping opt-in (#43282)

## 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
This commit is contained in:
Charlie Marsh authored and copyberry committed 2026-09-06 21:07:17 +00:00
1 parent 8283bc56b1
commit 8d7cc24a87
4 files changed
+10 -4

No files matched your search

+1
View File
@@ -12,6 +12,7 @@ codex_rust_crate(
],
integration_compile_data_extra = ["src/test_backend.rs"],
rustc_flags_extra = MACOS_WEBRTC_RUSTC_LINK_FLAGS,
stamped_binaries = ["codex-tui"],
test_data_extra = glob([
"src/**/*.rs",
"src/**/snapshots/**",