Skip to content

Commit

Permalink
explicitly set architecture for macos srt cmake build (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccbrown committed Jul 4, 2022
1 parent c760e8a commit 09d4215
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions srt/srt-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ fn main() {
build.define("ENABLE_APPS", "OFF").define("ENABLE_SHARED", "OFF");

if target_os == "macos" {
build.define(
"CMAKE_OSX_ARCHITECTURES",
match target_arch.as_str() {
"aarch64" => "arm64",
arch => arch,
},
);
build.define("OPENSSL_INCLUDE_DIR", format!("{}/vendor/openssl/include", env!("CARGO_MANIFEST_DIR")));
build.define(
"OPENSSL_CRYPTO_LIBRARY",
Expand Down

0 comments on commit 09d4215

Please sign in to comment.