-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BLD/RLS: fix aarch64 wheel building (#352)
- Loading branch information
1 parent
65d92e9
commit 1f1620e
Showing
3 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/scripts/toolchains/linux.cmake b/scripts/toolchains/linux.cmake | ||
index f22c71076..a68d6cbe8 100644 | ||
--- a/scripts/toolchains/linux.cmake | ||
+++ b/scripts/toolchains/linux.cmake | ||
@@ -13,7 +13,7 @@ elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86") | ||
string(APPEND VCPKG_LINKER_FLAGS " -m32") | ||
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm") | ||
set(CMAKE_SYSTEM_PROCESSOR armv7l CACHE STRING "") | ||
- if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") | ||
+ if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64") | ||
if(NOT DEFINED CMAKE_CXX_COMPILER) | ||
set(CMAKE_CXX_COMPILER "arm-linux-gnueabihf-g++") | ||
endif() | ||
@@ -30,7 +30,7 @@ elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm") | ||
endif() | ||
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64") | ||
set(CMAKE_SYSTEM_PROCESSOR aarch64 CACHE STRING "") | ||
- if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") | ||
+ if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64") | ||
if(NOT DEFINED CMAKE_CXX_COMPILER) | ||
set(CMAKE_CXX_COMPILER "aarch64-linux-gnu-g++") | ||
endif() |