Skip to content

Commit ffd1df7

Browse files
Ignore llvm-arg if it is --x86-asm-syntax
1 parent a8926f4 commit ffd1df7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/base.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol, supports_
112112
context.add_command_line_option("-mavx");
113113

114114
for arg in &tcx.sess.opts.cg.llvm_args {
115-
context.add_command_line_option(arg);
115+
if !arg.starts_with("--x86-asm-syntax=") {
116+
context.add_command_line_option(arg);
117+
}
116118
}
117119
// NOTE: This is needed to compile the file src/intrinsic/archs.rs during a bootstrap of rustc.
118120
context.add_command_line_option("-fno-var-tracking-assignments");

0 commit comments

Comments
 (0)