Skip to content

Commit

Permalink
fix(sys): link DX12/DML libs when directml feature is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Nov 27, 2023
1 parent 0777acb commit 6938da1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ort-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ fn static_link_prerequisites() {
println!("cargo:rustc-link-lib=framework=Foundation");
} else if target_os == "linux" || target_os == "android" {
println!("cargo:rustc-link-lib=stdc++");
} else if target_os == "windows" && cfg!(feature = "directml") {
println!("cargo:rustc-link-lib=dxguid");
println!("cargo:rustc-link-lib=DirectML");
}
}

Expand Down

0 comments on commit 6938da1

Please sign in to comment.