Skip to content

Commit 2cbac9c

Browse files
committed
Fix checks
1 parent 30290c8 commit 2cbac9c

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_gcc/src

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_gcc/src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub fn compile_codegen_unit(tcx: TyCtxt<'_>, cgu_name: Symbol, target_info: Lock
120120
// NOTE: Rust relies on LLVM doing wrapping on overflow.
121121
context.add_command_line_option("-fwrapv");
122122

123-
if tcx.sess.opts.cg.relocation_model == Some(rustc_target::spec::RelocModel::Static) {
123+
if tcx.sess.relocation_model() == rustc_target::spec::RelocModel::Static {
124124
context.add_command_line_option("-mcmodel=kernel");
125125
context.add_command_line_option("-fno-pie");
126126
}

0 commit comments

Comments
 (0)