Repository navigation
Conversation
relink.py captured cc's output and dropped it, so a failed link said only that the command exited with status 1, and lld's warnings from links that worked were lost. Each layout now keeps everything its link printed in link.log, and a failed link stops the run with the last lines of that log.
relink.py captured cc's output and dropped it, so a failed link raised a CalledProcessError naming only the command and its exit status, and ld's warnings from links that worked were lost. Each placement now keeps everything its link printed in link.log, and a failed link raises with the last lines of that log.
isolate.py already saved each link's output in link.log, but a failed link still raised a CalledProcessError naming only the command and its exit status. It now links through the Mach-O relinker's run_link, which writes the same log and raises with its last lines.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
# Conflicts: # benchmarks/mixed-text-placement/relink.py
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Stacked on #1477 (VIBE-232), which adds the ELF relinker's fake toolchain these tests extend. Merge #1477 first; until then this diff includes its commits.
The placement relinkers ran
ccwithcapture_output=True, check=Trueand dropped what it printed. A failed link stopped with aCalledProcessErrorthat showed only the command (71 arguments forcompare) and its exit status, so lld's actual error never reached the user, and warnings from links that worked were lost.Each layout now keeps everything its link printed, warnings included, in
link.logbeside its binary, and a failed link stops with the last 20 lines of that log. This applies to the ELF relinker indowncase-placement, the Mach-O relinker inmixed-text-placement, andescape-layout/isolate.py. isolate.py already savedlink.logbut still failed with only the exit status, so it now links through the Mach-O relinker's shared helper.For example, relinking
comparefrom a capture that is missing the vibescript object now ends with: