Skip to content

Commit e5709a6

Browse files
authored
Use "${CMAKE_HOST_SYSTEM_PROCESSOR}" over x86_64 if CMAKE_OSX_ARCHITECTURES is empty
1 parent eb56a00 commit e5709a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

products/llbuildSwift/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ endif()
1717

1818
# Set x86_64 default if CMAKE_OSX_ARCHITECTURES is not set
1919
if(NOT DEFINED CMAKE_OSX_ARCHITECTURES OR CMAKE_OSX_ARCHITECTURES STREQUAL "")
20-
set(CMAKE_OSX_ARCHITECTURES "x86_64")
20+
set(CMAKE_OSX_ARCHITECTURES "${CMAKE_HOST_SYSTEM_PROCESSOR}")
2121
endif()
2222

2323
# TODO(compnerd) move both of these outside of the CMake into the invocation

0 commit comments

Comments
 (0)