Uh oh!
There was an error while loading. Please reload this page.
Fall back to ld for private libunwind partial link - #129352
Conversation
When CMAKE_LINKER resolves to llvm-link, continue preferring the matching ld.lld for the NativeAOT private libunwind partial link, but fall back to binutils ld when ld.lld is unavailable. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib |
There was a problem hiding this comment.
Pull request overview
This PR adjusts the NativeAOT private libunwind “partial link” tool selection logic so that when CMAKE_LINKER resolves to llvm-link, the build prefers a matching ld.lld but can fall back to ld if ld.lld isn’t available.
Changes:
- If
ld.lldmatching the detectedllvm-linkversion is found, use it for the-rpartial link step. - Otherwise, attempt to locate
ldand use it as a fallback linker; if neither is found, fail configuration with a fatal error.
Show a summary per file
| File | Description |
|---|---|
| src/coreclr/nativeaot/Runtime/Full/CMakeLists.txt | Updates linker selection for the libunwind relocatable/partial link step to prefer ld.lld but allow fallback to ld. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 2
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
akoeplinger
commented
Jun 15, 2026
FYI this also blocks the runtime -> VMR codeflow (dotnet/dotnet#7196) so please make sure this gets in |
sbomer
commented
Jun 15, 2026
/ba-g "unrelated timeouts" |
Uh oh!
There was an error while loading. Please reload this page.
When CMAKE_LINKER resolves to llvm-link, continue preferring the matching ld.lld for the NativeAOT private libunwind partial link, but fall back to binutils ld when ld.lld is unavailable. Fixes#129313 --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
When CMAKE_LINKER resolves to llvm-link, continue preferring the matching ld.lld for the NativeAOT private libunwind partial link, but fall back to binutils ld when ld.lld is unavailable. Fixesdotnet#129313 --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
When CMAKE_LINKER resolves to llvm-link, continue preferring the matching ld.lld for the NativeAOT private libunwind partial link, but fall back to binutils ld when ld.lld is unavailable.
Fixes#129313