-
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 (#6559)
* Use cross-compilers instead of CentOS image * changelog * fix bad merge * refactor toolchain files * clarify useToolchain exception circumstances
- Loading branch information
1 parent
3cbab03
commit 0cbe877
Showing
15 changed files
with
48 additions
and
140 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
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.13.0 | ||
OPENSSL_VERSION=3.0.8 | ||
WIN32_ZLIB_VERSION=1.2.13 | ||
ZLIB_VERSION=1.2.13 | ||
MDBREALM_TEST_SERVER_TAG=2023-05-05 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
set(_TRIPLET "aarch64-unknown-linux-gnu") | ||
set(_TOOLCHAIN_MD5 a3a14d87f98904c2558b43bbd310f337) | ||
include("${CMAKE_CURRENT_LIST_DIR}/linux.toolchain.base.cmake") |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
set(_TRIPLET "armv7-unknown-linux-gnueabihf") | ||
set(_TOOLCHAIN_MD5 fbf817b1428bb35c93be8e6c15f73d7d) | ||
include("${CMAKE_CURRENT_LIST_DIR}/linux.toolchain.base.cmake") |
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() | ||
|
||
file(DOWNLOAD https://static.realm.io/toolchains/v3/${_TRIPLET}.tar.zst ${CMAKE_BINARY_DIR}/${_TRIPLET}.tar.zst | ||
EXPECTED_HASH MD5=${_TOOLCHAIN_MD5} 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") | ||
|
||
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++") | ||
|
||
set(REALM_LINUX_TOOLCHAIN ON) |
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,3 @@ | ||
set(_TRIPLET "x86_64-unknown-linux-gnu") | ||
set(_TOOLCHAIN_MD5 aa99fc16d85adf1bb2f8b63b83542044) | ||
include("${CMAKE_CURRENT_LIST_DIR}/linux.toolchain.base.cmake") |