Skip to content

Commit

Permalink
fix: osx build of ort
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 17, 2024
1 parent 326b643 commit 0bc9ef6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 6 additions & 4 deletions vcpkg-overlay/triplets/maa-arm64-osx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ string(APPEND VCPKG_CXX_FLAGS "-g -DNDEBUG")
include(${CMAKE_CURRENT_LIST_DIR}/maa-linux-library-override.cmake)

if(PORT MATCHES "onnxruntime")
message("add -Wno-error=shorten-64-to-32 for ${PORT}")
string(APPEND VCPKG_C_FLAGS "-Wno-error=shorten-64-to-32")
string(APPEND VCPKG_CXX_FLAGS "-Wno-error=shorten-64-to-32")
endif()
message("add -Wno-error for ${PORT}")
string(APPEND VCPKG_C_FLAGS " -Wno-error=shorten-64-to-32")
string(APPEND VCPKG_CXX_FLAGS " -Wno-error=shorten-64-to-32")
string(APPEND VCPKG_C_FLAGS " -Wno-error=c99-extensions")
string(APPEND VCPKG_CXX_FLAGS " -Wno-error=c99-extensions")
endif()
8 changes: 5 additions & 3 deletions vcpkg-overlay/triplets/maa-x64-osx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ string(APPEND VCPKG_CXX_FLAGS "-g -DNDEBUG")
include(${CMAKE_CURRENT_LIST_DIR}/maa-linux-library-override.cmake)

if(PORT MATCHES "onnxruntime")
message("add -Wno-error=shorten-64-to-32 for ${PORT}")
string(APPEND VCPKG_C_FLAGS "-Wno-error=shorten-64-to-32")
string(APPEND VCPKG_CXX_FLAGS "-Wno-error=shorten-64-to-32")
message("add -Wno-error for ${PORT}")
string(APPEND VCPKG_C_FLAGS " -Wno-error=shorten-64-to-32")
string(APPEND VCPKG_CXX_FLAGS " -Wno-error=shorten-64-to-32")
string(APPEND VCPKG_C_FLAGS " -Wno-error=c99-extensions")
string(APPEND VCPKG_CXX_FLAGS " -Wno-error=c99-extensions")
endif()

0 comments on commit 0bc9ef6

Please sign in to comment.