Skip to content

Commit

Permalink
fix: fix macOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Oct 8, 2024
1 parent d890734 commit e5cd505
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows" AND CMAKE_SYSTEM_PROCESSOR STREQUAL
endif()

if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_BUILD_TYPE STREQUAL "Release")
set(EXECUTORCH_CMAKE_ARGS
"${EXECUTORCH_CMAKE_ARGS} -DEXECUTORCH_BUILD_COREML=ON")
list(APPEND EXECUTORCH_CMAKE_ARGS
-DEXECUTORCH_BUILD_COREML=ON)
endif()

if(CMAKE_BUILD_TYPE STREQUAL "Release")
Expand Down
6 changes: 3 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ fn main() {
if node_platform == "darwin" {
link_whole("coremldelegate");
link("sqlite3");
println!("cargo:rustc-link-arg=-framework Foundation");
println!("cargo:rustc-link-arg=-framework CoreML");
println!("cargo:rustc-link-arg=-framework Accelerate");
println!("cargo:rustc-link-lib=framework=Foundation");
println!("cargo:rustc-link-lib=framework=CoreML");
println!("cargo:rustc-link-lib=framework=Accelerate");
}

// QNN
Expand Down

0 comments on commit e5cd505

Please sign in to comment.