boring-sys: Add support for Linux ARM(v7)

Signed-off-by: morph027 <stefan.heitmueller@gmx.com>
This commit is contained in:
morph027 2022-11-08 21:49:51 +01:00 committed by Jordan Rose
parent 3478bc2668
commit bb5caa43a2
2 changed files with 9 additions and 0 deletions

View File

@ -224,6 +224,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.