Skip to content

Commit cc45a96

Browse files
authored
[gdnative-sys] Pass cfg!(target_arch) for macOS
Add pass condition for macOS. Thanks to nice rust-toolchain, it just works on both `x86_64` and `Apple silicon`
1 parent 599feda commit cc45a96

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)