mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-21 22:34:34 +00:00
Compile fixes
This commit is contained in:
parent
bbc97e7e18
commit
b800a34b6b
@ -41,8 +41,10 @@ impl<'tcx> CodegenCx<'tcx> {
|
||||
.span_err(span, &format!("Cannot declare {} as an entry point", name));
|
||||
return;
|
||||
};
|
||||
let fn_hir_id = self.tcx.hir().local_def_id_to_hir_id(fn_local_def_id);
|
||||
let body = self.tcx.hir().body(self.tcx.hir().body_owned_by(fn_hir_id));
|
||||
let body = self
|
||||
.tcx
|
||||
.hir()
|
||||
.body(self.tcx.hir().body_owned_by(fn_local_def_id));
|
||||
body.params
|
||||
};
|
||||
for (arg_abi, hir_param) in fn_abi.args.iter().zip(hir_params) {
|
||||
|
@ -95,6 +95,7 @@ fn link_rlib(sess: &Session, codegen_results: &CodegenResults, out_filename: &Pa
|
||||
| NativeLibKind::Dylib { .. }
|
||||
| NativeLibKind::Framework { .. }
|
||||
| NativeLibKind::RawDylib
|
||||
| NativeLibKind::LinkArg
|
||||
| NativeLibKind::Unspecified => continue,
|
||||
}
|
||||
if let Some(name) = lib.name {
|
||||
@ -445,6 +446,10 @@ fn add_upstream_native_libraries(
|
||||
NativeLibKind::RawDylib => {
|
||||
sess.fatal(&format!("raw_dylib feature not yet implemented: {}", name))
|
||||
}
|
||||
NativeLibKind::LinkArg => sess.fatal(&format!(
|
||||
"TODO: linkarg nativelibkind not supported yet: {}",
|
||||
name
|
||||
)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user