Skip to content

fix: select stdlib link flags by Rust target triple - #257

Open
longlho wants to merge 1 commit into
hermeticbuild:mainfrom
longlho:codex/target-stdlib-linkflags
Open

longlho wants to merge 1 commit into
hermeticbuild:mainfrom
longlho:codex/target-stdlib-linkflags

Conversation

@longlho

@longlho longlho commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

The generated Rust toolchain selects standard-library link flags using separate OS and Windows ABI constraints. ABI constraints can also be present on non-Windows platforms: Linux with an MSVC constraint receives Windows libraries, while macOS with a GNU Windows ABI constraint fails analysis with an ambiguous stdlib_linkflags selection.

Select these flags using the same Rust target-triple config settings as target_triple and rust_std, preserving the existing flag lists. Add regression coverage that resolves real toolchains for both non-Windows cases and the Windows MSVC, GNU, and GNULVM targets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant