Skip to content

Commit 90664dc

Browse files
authored
[ATfE] Ensure we create universal binaries on MacOS builds (#240)
This updates the ATfE's CMake files to ensure universal binaries are created for MacOS builds of the toolchain. This is done by setting the `CMAKE_OSX_ARCHITECTURE` variable to cover both `x86_64` and `arm64` architecture options. (cherry picked from commit b65bfcf)
1 parent badbfd5 commit 90664dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arm-software/embedded/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ if(NOT CMAKE_BUILD_TYPE)
250250
set(CMAKE_BUILD_TYPE Release CACHE BOOL "" FORCE)
251251
endif()
252252

253+
set(CMAKE_OSX_ARCHITECTURES arm64;x86_64 CACHE STRING "")
254+
253255
find_package(Python3 REQUIRED COMPONENTS Interpreter)
254256

255257
if(NOT CMAKE_C_COMPILER_LAUNCHER AND NOT CMAKE_CXX_COMPILER_LAUNCHER)

0 commit comments

Comments
 (0)