add platform support details file for armv7-unknown-linux-uclibc
This commit is contained in:
parent
11381a5a3a
commit
bc3eb354e7
4 changed files with 69 additions and 3 deletions
|
@ -175,8 +175,7 @@ pub fn get_fn(cx: &CodegenCx<'ll, 'tcx>, instance: Instance<'tcx>) -> &'ll Value
|
|||
// should use dllimport for functions.
|
||||
if cx.use_dll_storage_attrs
|
||||
&& tcx.is_dllimport_foreign_item(instance_def_id)
|
||||
&& tcx.sess.target.env != "gnu"
|
||||
&& tcx.sess.target.env != "uclibc"
|
||||
&& !matches!(tcx.sess.target.env.as_ref(), "gnu" | "uclibc")
|
||||
{
|
||||
llvm::LLVMSetDLLStorageClass(llfn, llvm::DLLStorageClass::DllImport);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue