diff --git a/crates/rustc_codegen_spirv/src/lib.rs b/crates/rustc_codegen_spirv/src/lib.rs index e8984ba6d6..e2e5feec14 100644 --- a/crates/rustc_codegen_spirv/src/lib.rs +++ b/crates/rustc_codegen_spirv/src/lib.rs @@ -190,7 +190,7 @@ impl ThinBufferMethods for SpirvThinBuffer { struct SpirvCodegenBackend; impl CodegenBackend for SpirvCodegenBackend { - fn target_features(&self, sess: &Session) -> Vec { + fn target_features(&self, sess: &Session, _allow_unstable: bool) -> Vec { let cmdline = sess.opts.cg.target_feature.split(','); let cfg = sess.target.options.features.split(','); cfg.chain(cmdline) diff --git a/crates/rustc_codegen_spirv/src/link.rs b/crates/rustc_codegen_spirv/src/link.rs index 46de1032f1..7417ad439d 100644 --- a/crates/rustc_codegen_spirv/src/link.rs +++ b/crates/rustc_codegen_spirv/src/link.rs @@ -6,9 +6,10 @@ use rustc_ast::CRATE_NODE_ID; use rustc_codegen_spirv_types::{CompileResult, ModuleResult}; use rustc_codegen_ssa::back::lto::{LtoModuleCodegen, SerializedModule, ThinModule, ThinShared}; use rustc_codegen_ssa::back::write::CodegenContext; -use rustc_codegen_ssa::{CodegenResults, NativeLib, METADATA_FILENAME}; +use rustc_codegen_ssa::{CodegenResults, NativeLib}; use rustc_data_structures::fx::FxHashSet; use rustc_errors::FatalError; +use rustc_metadata::fs::METADATA_FILENAME; use rustc_middle::bug; use rustc_middle::dep_graph::WorkProduct; use rustc_middle::middle::dependency_format::Linkage; @@ -32,7 +33,7 @@ pub fn link<'a>( ) { let output_metadata = sess.opts.output_types.contains_key(&OutputType::Metadata); for &crate_type in sess.crate_types().iter() { - if (sess.opts.debugging_opts.no_codegen || !sess.opts.output_types.should_codegen()) + if (sess.opts.unstable_opts.no_codegen || !sess.opts.output_types.should_codegen()) && !output_metadata && crate_type == CrateType::Executable { @@ -353,11 +354,11 @@ fn link_local_crate_native_libs_and_dependent_crate_libs<'a>( crate_type: CrateType, codegen_results: &CodegenResults, ) { - if sess.opts.debugging_opts.link_native_libraries { + if sess.opts.unstable_opts.link_native_libraries { add_local_native_libraries(sess, codegen_results); } add_upstream_rust_crates(sess, rlibs, codegen_results, crate_type); - if sess.opts.debugging_opts.link_native_libraries { + if sess.opts.unstable_opts.link_native_libraries { add_upstream_native_libraries(sess, codegen_results, crate_type); } }