Skip to content

Commit

Permalink
Merge pull request #4 from passware/macos-build
Browse files Browse the repository at this point in the history
Library search path fixed for macOS
  • Loading branch information
dmitry-zakablukov authored Nov 12, 2024
2 parents 7b99462 + 51b6bfe commit 1ba2174
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opencl-dynamic-sys"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
authors = ["Dmitry Zakablukov <dmitriy.zakablukov@gmail.com>"]
description = "Rust library to handle the dynamic load of the OpenCL shared library"
Expand Down
4 changes: 2 additions & 2 deletions src/container/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ pub fn load_library() -> &'static Result<OpenClRuntime, Error> {
}
}

const LIBRARY_NAME: &'static str = if cfg!(windows) {
const LIBRARY_NAME: &'static str = if cfg!(target_os = "windows") {
"OpenCL.dll"
} else if cfg!(darwin) {
} else if cfg!(target_os = "macos") {
"/System/Library/Frameworks/OpenCL.framework/OpenCL"
} else {
"libOpenCL.so"
Expand Down

0 comments on commit 1ba2174

Please sign in to comment.