Skip to content

Commit

Permalink
fix(osx): -Wno-error=shorten-64-to-32
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 16, 2024
1 parent 3d2dcc0 commit d6b75b4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vcpkg-overlay/triplets/maa-arm64-osx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ string(APPEND VCPKG_C_FLAGS "-g -DNDEBUG")
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()
6 changes: 6 additions & 0 deletions vcpkg-overlay/triplets/maa-x64-osx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ string(APPEND VCPKG_C_FLAGS "-g -DNDEBUG")
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()

0 comments on commit d6b75b4

Please sign in to comment.