Disable macOS architecture hack on CMake 3.0.
Per the comment, it's no longer necessary. macOS i386 does not exist, but apparently iOS i386 does! We can probably just remove it altogether, but our cmake_minimum_required is nominally 2.8, so I just put the version check in. Bug: 210 Change-Id: I6e0617a3f292a218b2465eee85bd4814bd0e55c7 Reviewed-on: https://boringssl-review.googlesource.com/22304 Commit-Queue: Steven Valdez <svaldez@google.com> Reviewed-by: Steven Valdez <svaldez@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
This commit is contained in:
parent
af92418b8b
commit
f5beb883c2
@ -310,7 +310,7 @@ if (ANDROID AND ${ARCH} STREQUAL "arm")
|
||||
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -march=${CMAKE_SYSTEM_PROCESSOR}")
|
||||
endif()
|
||||
|
||||
if (${ARCH} STREQUAL "x86" AND APPLE)
|
||||
if (${ARCH} STREQUAL "x86" AND APPLE AND ${CMAKE_VERSION} VERSION_LESS "3.0")
|
||||
# With CMake 2.8.x, ${CMAKE_SYSTEM_PROCESSOR} evalutes to i386 on OS X,
|
||||
# but clang defaults to 64-bit builds on OS X unless otherwise told.
|
||||
# Set ARCH to x86_64 so clang and CMake agree. This is fixed in CMake 3.
|
||||
|
Loading…
Reference in New Issue
Block a user