Merge commit '6d355f6844
' into sync_cg_clif-2023-12-31
This commit is contained in:
commit
d1d134e464
6 changed files with 22 additions and 20 deletions
|
@ -321,7 +321,7 @@ fn dep_symbol_lookup_fn(
|
|||
Linkage::NotLinked | Linkage::IncludedFromDylib => {}
|
||||
Linkage::Static => {
|
||||
let name = crate_info.crate_name[&cnum];
|
||||
let mut err = sess.struct_err(format!("Can't load static lib {}", name));
|
||||
let mut err = sess.dcx().struct_err(format!("Can't load static lib {}", name));
|
||||
err.note("rustc_codegen_cranelift can only load dylibs in JIT mode.");
|
||||
err.emit();
|
||||
}
|
||||
|
|
|
@ -154,6 +154,8 @@ pub(crate) fn compile_global_asm(
|
|||
}
|
||||
} else {
|
||||
let mut child = Command::new(std::env::current_exe().unwrap())
|
||||
// Avoid a warning about the jobserver fd not being passed
|
||||
.env_remove("CARGO_MAKEFLAGS")
|
||||
.arg("--target")
|
||||
.arg(&config.target)
|
||||
.arg("--crate-type")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue