about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/base.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base.rs b/src/base.rs
index d88fe9bca2a..e4ecbd46f0c 100644
--- a/src/base.rs
+++ b/src/base.rs
@@ -89,6 +89,8 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol, supports_
         for arg in &tcx.sess.opts.cg.llvm_args {
             context.add_command_line_option(arg);
         }
+        // NOTE: This is needed to compile the file src/intrinsic/archs.rs during a bootstrap of rustc.
+        context.add_command_line_option("-fno-var-tracking-assignments");
         // NOTE: an optimization (https://github.com/rust-lang/rustc_codegen_gcc/issues/53).
         context.add_command_line_option("-fno-semantic-interposition");
         // NOTE: Rust relies on LLVM not doing TBAA (https://github.com/rust-lang/unsafe-code-guidelines/issues/292).