Skip to content

Commit

Permalink
Update build flags for OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
panickal-xmos committed Oct 26, 2023
1 parent eb1e51d commit b023503
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/xmos_ai_tools/xinterpreters/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
else()
set(BUILD_FLAGS
"-g"
"-O3")
"-O2")
endif()


if(DEFINED ENV{CMAKE_ENABLE_DARWIN_TARGET_ARM64})
set(BUILD_FLAGS "${BUILD_FLAGS} -target arm64-apple-macos11")
set(CMAKE_OSX_ARCHITECTURES "arm64"
CACHE STRING "The list of target architectures to build")
endif()

set(TOP_DIR
Expand Down

0 comments on commit b023503

Please sign in to comment.