Fix Windows linkage (#445)

This commit is contained in:
Violet
2025-07-29 10:15:32 -07:00
committed by GitHub
parent d81404eb70
commit 4ffa669cce
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::Type(type_) => converter.get_type(type_).map(Item::Type),
Item::ForeignMod(mut extern_) => { Item::ForeignMod(mut extern_) => {
extern_.attrs.push( 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_)) Some(Item::ForeignMod(extern_))
} }