mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-02 06:47:46 +03:00
Fix Windows linkage (#445)
This commit is contained in:
2416
ext/rocblas-sys/src/lib.rs
vendored
2416
ext/rocblas-sys/src/lib.rs
vendored
File diff suppressed because it is too large
Load Diff
@ -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_))
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user