Open
Description
We compile hello.rs
for x86_64-pc-windows-gnullvm
then there is a link error: undefined symbol
rustc -C lto=thin -C no-prepopulate-passes --target=x86_64-pc-windows-gnullvm hello.rs
fn main() {
println!("Hello world!");
}
The rustc version is rustc 1.80.0-nightly (867900499 2024-05-23)
The link error reproduces for target x86_64-pc-windows-gnu
and x86_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
?