Merge pull request #1892 from esnunes/vendor-raylib-4.0-macos-arm64

Update `vendor:raylib` to support macos-arm64 (apple silicon)
This commit is contained in:
gingerBill authored and GitHub committed 2022-07-22 11:06:16 +01:00
commit 17f47a7ab0
5 files changed
+14 -5

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+14 -5
View File
@@ -106,11 +106,20 @@ when ODIN_OS == .Windows {
"system:pthread",
}
} else when ODIN_OS == .Darwin {
foreign import lib {
"macos/libraylib.a",
"system:Cocoa.framework",
"system:OpenGL.framework",
"system:IOKit.framework",
when ODIN_ARCH == .arm64 {
foreign import lib {
"macos-arm64/libraylib.a",
"system:Cocoa.framework",
"system:OpenGL.framework",
"system:IOKit.framework",
}
} else {
foreign import lib {
"macos/libraylib.a",
"system:Cocoa.framework",
"system:OpenGL.framework",
"system:IOKit.framework",
}
}
} else {
foreign import lib "system:raylib"