Using a plugin that was built without -C prefer-dynamic
causes LLVM error
#28434
Labels
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
I forgot to add
plugin = true
to Cargo.toml and got this when building an external test:For reference, this is an incorrect way to build a plugin:
rustc src/lib.rs --crate-type dylib -g
This is added by
plugin = true
:rustc src/lib.rs --crate-type dylib -C prefer-dynamic -g --test -C metadata=7ede684f643fceb6 -C extra-filename=-7ede684f643fceb6
The text was updated successfully, but these errors were encountered: