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
|
@ -261,7 +261,11 @@ impl ModuleConfig {
|
|||
inline_threshold: sess.opts.cg.inline_threshold,
|
||||
new_llvm_pass_manager: sess.opts.debugging_opts.new_llvm_pass_manager,
|
||||
emit_lifetime_markers: sess.emit_lifetime_markers(),
|
||||
llvm_plugins: if_regular!(sess.opts.debugging_opts.llvm_plugins.clone(), vec![]),
|
||||
llvm_plugins: if sess.opts.debugging_opts.new_llvm_pass_manager.unwrap_or(false) {
|
||||
if_regular!(sess.opts.debugging_opts.llvm_plugins.clone(), vec![])
|
||||
} else {
|
||||
vec![]
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue