Skip to content

Commit 65018a8

Browse files
bors[bot]jeyum2
andauthored
Merge #982
982: [gdnative-sys] Pass `cfg!(target_arch)` for macOS r=chitoyuu a=jeyum2 Add pass condition for macOS. Thanks to nice rust-toolchain, it just works on both `x86_64` and `Apple silicon` Issue #981 Tested on - macOS 12.5, Apple M1 and x86_64 Co-authored-by: je <jeyum2@gmail.com>
2 parents 599feda + cc45a96 commit 65018a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gdnative-sys/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ mod header_binding {
6262
// to double-check them wherever they occur.
6363

6464
assert!(
65+
cfg!(target_os = "macos") || // All macOS architectures are supported
6566
cfg!(target_arch = "x86_64"),
6667
"unsupported host architecture: build from x86_64 instead"
6768
);

0 commit comments

Comments
 (0)