Fix Windows linkage

This commit is contained in:
Violet
2025-07-29 16:47:55 +00:00
parent d81404eb70
commit f069b65e29
2 changed files with 1209 additions and 1209 deletions

File diff suppressed because it is too large Load Diff

View File

@ -958,7 +958,7 @@ fn generate_rocblas(output: &PathBuf, path: &[&str]) {
Item::Type(type_) => converter.get_type(type_).map(Item::Type),
Item::ForeignMod(mut extern_) => {
extern_.attrs.push(
parse_quote!(#[cfg_attr(windows, link = "rocblas", kind = "raw-dylib")]),
parse_quote!(#[cfg_attr(windows, link(name = "rocblas", kind = "raw-dylib"))]),
);
Some(Item::ForeignMod(extern_))
}