Skip to content

Commit

Permalink
test FFI build for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 committed Sep 19, 2024
1 parent 75fa790 commit 82f6047
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ fn is_docs_rs() -> bool {
fn is_sidecar_ffi_enabled() -> bool {
// Note: arm64 is disabled for now as cross-compilation is not yet supported in rust2go
// and it's reported rust2go build does not work on arm64 MacOS
if cfg!(target_arch = "x86_64") {
// Opt-out building the F3 sidecar staticlib
match std::env::var("FOREST_F3_SIDECAR_FFI_BUILD_OPT_OUT") {
Ok(value) => !matches!(value.to_lowercase().as_str(), "1" | "true"),
_ => true,
}
} else {
false
// if cfg!(target_arch = "x86_64") {
// Opt-out building the F3 sidecar staticlib
match std::env::var("FOREST_F3_SIDECAR_FFI_BUILD_OPT_OUT") {
Ok(value) => !matches!(value.to_lowercase().as_str(), "1" | "true"),
_ => true,
}
// } else {
// false
// }
}

0 comments on commit 82f6047

Please sign in to comment.