-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cross-compilers instead of CentOS image
- Loading branch information
1 parent
7b9ab24
commit d29efd9
Showing
11 changed files
with
67 additions
and
134 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
PACKAGE_NAME=realm-core | ||
VERSION=13.10.0 | ||
OPENSSL_VERSION=3.0.8 | ||
WIN32_ZLIB_VERSION=1.2.13 | ||
ZLIB_VERSION=1.2.13 | ||
MDBREALM_TEST_SERVER_TAG=2023-04-29 |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR arm) | ||
set(CMAKE_LIBRARY_ARCHITECTURE aarch64-linux-gnu) | ||
if(NOT CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux" OR NOT CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64") | ||
message(FATAL_ERROR "This toolchain can only be used on x86_64 Linux.") | ||
endif() | ||
|
||
set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc) | ||
set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++) | ||
set(_TRIPLET "aarch64-unknown-linux-gnu") | ||
file(DOWNLOAD https://static.realm.io/toolchains/v3/${_TRIPLET}.tar.zst ${CMAKE_BINARY_DIR}/${_TRIPLET}.tar.zst | ||
EXPECTED_HASH MD5=a3a14d87f98904c2558b43bbd310f337 STATUS _DOWNLOAD_STATUS) | ||
list(GET _DOWNLOAD_STATUS 0 _DOWNLOAD_STATUS_CODE) | ||
if(NOT ${_DOWNLOAD_STATUS_CODE} EQUAL 0) | ||
message(FATAL_ERROR "Error downloading ${_TRIPLET}.tar.zst: ${_DOWNLOAD_STATUS}") | ||
endif() | ||
|
||
set(CMAKE_CXX_FLAGS_INIT "-Wno-psabi") | ||
file(ARCHIVE_EXTRACT INPUT ${CMAKE_BINARY_DIR}/${_TRIPLET}.tar.zst DESTINATION ${CMAKE_BINARY_DIR}) | ||
include("${CMAKE_BINARY_DIR}/${_TRIPLET}/toolchain.cmake") | ||
|
||
set(CMAKE_FIND_ROOT_PATH "/usr/${CMAKE_LIBRARY_ARCHITECTURE}") | ||
|
||
set(ENV{PKG_CONFIG_SYSROOT_DIR} "/usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}") | ||
|
||
set(THREADS_PTHREAD_ARG -pthread) | ||
|
||
set(REALM_USE_SYSTEM_OPENSSL ON) | ||
set(CMAKE_EXE_LINKER_FLAGS_INIT "-Xlinker --exclude-libs=libgcc.a,libstdc++.a -static-libgcc -static-libstdc++") | ||
set(CMAKE_SHARED_LINKER_FLAGS_INIT "-Xlinker --exclude-libs=libgcc.a,libstdc++.a -static-libgcc -static-libstdc++") | ||
set(CMAKE_MODULE_LINKER_FLAGS_INIT "-Xlinker --exclude-libs=libgcc.a,libstdc++.a -static-libgcc -static-libstdc++") |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,17 +1,18 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR arm) | ||
if(NOT CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux" OR NOT CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64") | ||
message(FATAL_ERROR "This toolchain can only be used on x86_64 Linux.") | ||
endif() | ||
|
||
set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc) | ||
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++) | ||
set(_TRIPLET "armv7-unknown-linux-gnueabihf") | ||
file(DOWNLOAD https://static.realm.io/toolchains/v3/${_TRIPLET}.tar.zst ${CMAKE_BINARY_DIR}/${_TRIPLET}.tar.zst | ||
EXPECTED_HASH MD5=fbf817b1428bb35c93be8e6c15f73d7d STATUS _DOWNLOAD_STATUS) | ||
list(GET _DOWNLOAD_STATUS 0 _DOWNLOAD_STATUS_CODE) | ||
if(NOT ${_DOWNLOAD_STATUS_CODE} EQUAL 0) | ||
message(FATAL_ERROR "Error downloading ${_TRIPLET}.tar.zst: ${_DOWNLOAD_STATUS}") | ||
endif() | ||
|
||
set(CMAKE_CXX_FLAGS_INIT "-Wno-psabi") | ||
file(ARCHIVE_EXTRACT INPUT ${CMAKE_BINARY_DIR}/${_TRIPLET}.tar.zst DESTINATION ${CMAKE_BINARY_DIR}) | ||
include("${CMAKE_BINARY_DIR}/${_TRIPLET}/toolchain.cmake") | ||
|
||
set(CMAKE_LIBRARY_ARCHITECTURE arm-linux-gnueabihf) | ||
|
||
set(CMAKE_FIND_ROOT_PATH "/usr/${CMAKE_LIBRARY_ARCHITECTURE}") | ||
|
||
set(ENV{PKG_CONFIG_SYSROOT_DIR} "/usr/lib/arm-linux-gnueabihf/") | ||
|
||
set(THREADS_PTHREAD_ARG -pthread) | ||
|
||
set(REALM_USE_SYSTEM_OPENSSL ON) | ||
set(CMAKE_EXE_LINKER_FLAGS_INIT "-Xlinker --exclude-libs=libgcc.a,libstdc++.a -static-libgcc -static-libstdc++") | ||
set(CMAKE_SHARED_LINKER_FLAGS_INIT "-Xlinker --exclude-libs=libgcc.a,libstdc++.a -static-libgcc -static-libstdc++") | ||
set(CMAKE_MODULE_LINKER_FLAGS_INIT "-Xlinker --exclude-libs=libgcc.a,libstdc++.a -static-libgcc -static-libstdc++") |
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
if(NOT CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux" OR NOT CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64") | ||
message(FATAL_ERROR "This toolchain can only be used on x86_64 Linux.") | ||
endif() | ||
|
||
set(_TRIPLET "x86_64-unknown-linux-gnu") | ||
file(DOWNLOAD https://static.realm.io/toolchains/v3/${_TRIPLET}.tar.zst ${CMAKE_BINARY_DIR}/${_TRIPLET}.tar.zst | ||
EXPECTED_HASH MD5=aa99fc16d85adf1bb2f8b63b83542044 STATUS _DOWNLOAD_STATUS) | ||
list(GET _DOWNLOAD_STATUS 0 _DOWNLOAD_STATUS_CODE) | ||
if(NOT ${_DOWNLOAD_STATUS_CODE} EQUAL 0) | ||
message(FATAL_ERROR "Error downloading ${_TRIPLET}.tar.zst: ${_DOWNLOAD_STATUS}") | ||
endif() | ||
|
||
file(ARCHIVE_EXTRACT INPUT ${CMAKE_BINARY_DIR}/${_TRIPLET}.tar.zst DESTINATION ${CMAKE_BINARY_DIR}) | ||
include("${CMAKE_BINARY_DIR}/${_TRIPLET}/toolchain.cmake") | ||
unset(CMAKE_CROSSCOMPILING_EMULATOR) | ||
|
||
set(CMAKE_EXE_LINKER_FLAGS_INIT "-Xlinker --exclude-libs=libgcc.a,libstdc++.a -static-libgcc -static-libstdc++") | ||
set(CMAKE_SHARED_LINKER_FLAGS_INIT "-Xlinker --exclude-libs=libgcc.a,libstdc++.a -static-libgcc -static-libstdc++") | ||
set(CMAKE_MODULE_LINKER_FLAGS_INIT "-Xlinker --exclude-libs=libgcc.a,libstdc++.a -static-libgcc -static-libstdc++") |