Using -C lto=thin
and -C no-prepopulate-passes
at the same time for windows target , report link error: undefined symbol
#125802
Labels
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
O-windows-gnu
Toolchain: GNU, Operating system: Windows
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
We compile
hello.rs
forx86_64-pc-windows-gnullvm
then there is a link error: undefined symbolrustc -C lto=thin -C no-prepopulate-passes --target=x86_64-pc-windows-gnullvm hello.rs
The rustc version is
rustc 1.80.0-nightly (867900499 2024-05-23)
The link error reproduces for target
x86_64-pc-windows-gnu
andx86_64-pc-windows-gnullvm
It seems that
-C no-prepopulate-passes
isn't compatible with-Clto
.Maybe we should report error that
-C no-prepopulate-passes isn't compatible with -Clto
?The text was updated successfully, but these errors were encountered: