Skip to content

Strip symbols from source-built release package binaries - #52178

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/dc363c04690aa9e772690417a52a8eff31650278
Oct 8, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/dc363c04690aa9e772690417a52a8eff31650278

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Strip symbols from source-built release package binaries

What changed

On Linux and macOS, strip the packaged copies of source-built release entrypoint and codex-code-mode-host binaries while retaining symbols in the original build outputs.

Add --strip auto|all|none and --strip-tool. The default auto preserves prebuilt inputs and other build profiles; all also strips those package copies, and none disables stripping. Select target-compatible strip tools and fail on missing tools or strip errors. Leave third-party resources unchanged.

Testing

Add a regression test that compiles an executable with debug information, verifies stripped package binaries are smaller and still runnable, and checks that original inputs, preserved package copies, and third-party resources remain byte-for-byte unchanged.

## What changed

On Linux and macOS, strip the packaged copies of source-built release entrypoint and `codex-code-mode-host` binaries while retaining symbols in the original build outputs.

Add `--strip auto|all|none` and `--strip-tool`. The default `auto` preserves prebuilt inputs and other build profiles; `all` also strips those package copies, and `none` disables stripping. Select target-compatible strip tools and fail on missing tools or strip errors. Leave third-party resources unchanged.

## Testing

Add a regression test that compiles an executable with debug information, verifies stripped package binaries are smaller and still runnable, and checks that original inputs, preserved package copies, and third-party resources remain byte-for-byte unchanged.

GitOrigin-RevId: dc363c04690aa9e772690417a52a8eff31650278
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Note

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/dc363c04690aa9e772690417a52a8eff31650278 branch from c7d3c00 to e9e6cf6 Compare October 8, 2026 17:12
@copyberry
copyberry Bot merged commit e9e6cf6 into main Oct 8, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/dc363c04690aa9e772690417a52a8eff31650278 branch October 8, 2026 17:12
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 8, 2026
@Otaru25
Otaru25 deployed to issue-triage October 8, 2026 17:16 — with Image GitHub Actions Active
@Otaru25
Otaru25 deployed to issue-triage October 8, 2026 17:16 — with Image GitHub Actions Active
@Otaru25
Otaru25 deployed to issue-triage October 8, 2026 17:16 — with Image GitHub Actions Active
@bryceharlow
bryceharlow deployed to issue-triage October 8, 2026 17:19 — with Image GitHub Actions Active
@bryceharlow
bryceharlow deployed to issue-triage October 8, 2026 17:19 — with Image GitHub Actions Active
@bryceharlow
bryceharlow deployed to issue-triage October 8, 2026 17:19 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — e9e6cf63 Deployed Oct 8, 2026 by bryceharlow via Translate non-English issue #18494
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants