Fix Windows linkage (#445)

This commit is contained in:
Violet 2025-07-29 10:15:32 -07:00 committed by GitHub
commit 4ffa669cce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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_))
}