Skip to content

Commit

Permalink
Fix test on Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanshade committed Feb 17, 2023
1 parent abf973e commit 9c94d2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/objc2/src/declare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,10 @@ mod tests {
let superclass = test_utils::custom_class();
let builder = ClassBuilder::new("TestFetchWhileCreatingClass", superclass).unwrap();

if cfg!(all(feature = "apple", target_arch = "x86_64")) {
if cfg!(all(
feature = "apple",
any(target_arch = "aarch64", target_arch = "x86_64")
)) {
// It is IMO a bug that it is present here!
assert!(is_present(builder.cls.as_ptr().cast()));
} else {
Expand Down

0 comments on commit 9c94d2f

Please sign in to comment.