diff options
| author | antoyo <antoyo@users.noreply.github.com> | 2022-03-31 08:40:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-31 08:40:18 -0400 |
| commit | 403e198f4a91fae3314869d0ce7cec1aa30d1fca (patch) | |
| tree | ad04b5c473aedf25912d38b7e830f7a44894e294 | |
| parent | dac359504cbc59dd1a6807b060ebaa3562354b80 (diff) | |
| parent | ef1a6d7c23757fec36ee3b353710f56241bbd34b (diff) | |
| download | rust-403e198f4a91fae3314869d0ce7cec1aa30d1fca.tar.gz rust-403e198f4a91fae3314869d0ce7cec1aa30d1fca.zip | |
Merge pull request #154 from rust-lang/fix/error-var-tracking
Fix error related to var tracking assignments
| -rw-r--r-- | src/base.rs | 2 |
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). |
