Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions wolfssl-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,10 @@ fn build_wolfssl(wolfssl_src: &Path) -> PathBuf {
}
build_target::Arch::X86_64 => {
// We don't need these build flag for iOS simulator
if build_target::target_os() != build_target::Os::iOS {
if !(build_target::target_os() == build_target::Os::iOS
&& build_target::target_env()
== build_target::Env::Other(String::from("sim")).into())
{
// Enable Intel ASM optmisations
conf.enable("intelasm", None);
// Enable AES hardware acceleration
Expand Down Expand Up @@ -455,7 +458,9 @@ fn build_wolfssl(wolfssl_src: &Path) -> PathBuf {
}

// Check if we are building for Mac Catalyst or iOS device
let arm64_arch = if env::var("CARGO_CFG_TARGET_ABI").unwrap_or_default() == "macabi" {
let arm64_arch = if build_target::target_env()
== build_target::Env::Other(String::from("macabi")).into()
{
"arm64-apple-darwin"
} else {
"arm64-apple-ios"
Expand Down
Loading