Merge pull request #95 from signalapp/libsignal-arm

boring-sys: Add support for cross-compiling to Linux ARM(v7)
This commit is contained in:
Ivan Nikulin 2023-07-28 13:20:32 +01:00 committed by GitHub
commit 4e190ad00c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -225,6 +225,12 @@ fn get_boringssl_cmake_config() -> cmake::Config {
pwd.join("cmake/aarch64-linux.cmake").as_os_str(), pwd.join("cmake/aarch64-linux.cmake").as_os_str(),
); );
} }
"arm" => {
boringssl_cmake.define(
"CMAKE_TOOLCHAIN_FILE",
pwd.join("cmake/armv7-linux.cmake").as_os_str(),
);
}
_ => { _ => {
eprintln!( eprintln!(
"warning: no toolchain file configured by boring-sys for {}", "warning: no toolchain file configured by boring-sys for {}",

View File

@ -0,0 +1,3 @@
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR armv7)
# Rely on environment variables to set the compiler and include paths.