Fix conditions for using legacy or new pm plugins
This commit is contained in:
parent
c4f29fa0ed
commit
75d1208df8
2 changed files with 6 additions and 2 deletions
|
@ -123,7 +123,7 @@ unsafe fn configure_llvm(sess: &Session) {
|
|||
sess.opts.debugging_opts.new_llvm_pass_manager.unwrap_or(false);
|
||||
|
||||
// Use the legacy pm registration if the new_llvm_pass_manager option isn't explicitly enabled
|
||||
if use_new_llvm_pm_plugin_register {
|
||||
if !use_new_llvm_pm_plugin_register {
|
||||
// Register LLVM plugins by loading them into the compiler process.
|
||||
for plugin in &sess.opts.debugging_opts.llvm_plugins {
|
||||
let lib = Library::new(plugin).unwrap_or_else(|e| bug!("couldn't load plugin: {}", e));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue