Skip to content

Remove libubsan CI workaround#24782

Merged
anp-oai merged 3 commits into
mainfrom
codex/remove-ci-ubsan-runtime
May 28, 2026
Merged

Remove libubsan CI workaround#24782
anp-oai merged 3 commits into
mainfrom
codex/remove-ci-ubsan-runtime

Conversation

@anp-oai

@anp-oai anp-oai commented May 27, 2026

Copy link
Copy Markdown
Collaborator

It seems that this was added to allow rustc to load proc macros that had been compiled with UBSan enabled, which zig does for debug and ReleaseSafe builds. When zig drives the link of the final binary it knows to include the ubsan runtime, but our zig-built artifacts are being linked into a binary whose linking rustc drives. This removes the libubsan workaround we have and replaces it with -fno-sanitize=undefined passed to zig.

@anp-oai anp-oai force-pushed the codex/remove-ci-ubsan-runtime branch from f9bb9c2 to b3cff3c Compare May 27, 2026 22:59
@anp-oai anp-oai marked this pull request as ready for review May 28, 2026 00:23
@anp-oai anp-oai requested review from bolinfest and jif-oai and removed request for bolinfest May 28, 2026 00:23
Comment thread .github/scripts/install-musl-build-tools.sh Outdated
@anp-oai anp-oai enabled auto-merge (squash) May 28, 2026 15:43
@anp-oai anp-oai merged commit a061bef into main May 28, 2026
31 checks passed
@anp-oai anp-oai deleted the codex/remove-ci-ubsan-runtime branch May 28, 2026 15:49
@github-actions github-actions Bot locked and limited conversation to collaborators May 28, 2026
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.

2 participants