1
Fork 0

Call out to binutils' dlltool for raw-dylib on windows-gnu platforms.

This commit is contained in:
Richard Cobbe 2021-11-01 15:49:58 -07:00
parent 4961b107f2
commit 0cf7fd1208
24 changed files with 252 additions and 113 deletions

View file

@ -274,11 +274,6 @@ impl Collector<'tcx> {
span,
"`#[link(...)]` with `kind = \"raw-dylib\"` only supported on Windows",
);
} else if !self.tcx.sess.target.options.is_like_msvc {
self.tcx.sess.span_warn(
span,
"`#[link(...)]` with `kind = \"raw-dylib\"` not supported on windows-gnu",
);
}
if lib_name.as_str().contains('\0') {