]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_gcc/src/base.rs
:arrow_up: rust-analyzer
[rust.git] / compiler / rustc_codegen_gcc / src / base.rs
index e4ecbd46f0c428c2657ac3fcf55681f390eea023..8f9f6f98faf817dc5a141c44a8e4ed3b1f80c195 100644 (file)
@@ -96,7 +96,7 @@ fn module_codegen(tcx: TyCtxt<'_>, (cgu_name, supports_128bit_integers): (Symbol
         // NOTE: Rust relies on LLVM not doing TBAA (https://github.com/rust-lang/unsafe-code-guidelines/issues/292).
         context.add_command_line_option("-fno-strict-aliasing");
 
-        if tcx.sess.opts.debugging_opts.function_sections.unwrap_or(tcx.sess.target.function_sections) {
+        if tcx.sess.opts.unstable_opts.function_sections.unwrap_or(tcx.sess.target.function_sections) {
             context.add_command_line_option("-ffunction-sections");
             context.add_command_line_option("-fdata-sections");
         }