Don't pass LLVM pass & its args during linking (#1274)
This commit is contained in:
parent
b7c1591b00
commit
efc5756e3f
@ -326,6 +326,8 @@ impl CompilerWrapper for ClangWrapper {
|
||||
args.push("-flegacy-pass-manager".into());
|
||||
}
|
||||
}
|
||||
|
||||
if !self.linking {
|
||||
for pass in &self.passes {
|
||||
use_pass = true;
|
||||
if self.use_new_pm {
|
||||
@ -354,6 +356,8 @@ impl CompilerWrapper for ClangWrapper {
|
||||
args.push(passes_arg.into());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if self.linking {
|
||||
if self.x_set {
|
||||
args.push("-x".into());
|
||||
|
Loading…
x
Reference in New Issue
Block a user