Skip to content

Commit

Permalink
Fix IOS builds (pytorch#127985)
Browse files Browse the repository at this point in the history
IOS builds fail these days, fix it.

Pull Request resolved: pytorch#127985
Approved by: https://github.com/ezyang
  • Loading branch information
cyyever authored and pytorchmergebot committed Jun 5, 2024
1 parent a135776 commit ce44369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ if(USE_SLEEF_FOR_ARM_VEC256)
endif()

# Enable sleef on macOS with Apple silicon by default
if((${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") AND (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm64"))
if((${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") AND ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "arm64"))
message(STATUS "Running on macOS with Apple silicon")
string(APPEND CMAKE_CXX_FLAGS " -DAT_BUILD_ARM_VEC256_WITH_SLEEF")
add_definitions(-DAT_BUILD_ARM_VEC256_WITH_SLEEF)
Expand Down

0 comments on commit ce44369

Please sign in to comment.