Update vendor:raylib to support macos-arm64 (apple silicon)

This commit is contained in:
Eduardo Nunes
2022-07-20 18:23:09 -03:00
parent b6408d1b3f
commit 59b4c889d3
5 changed files with 14 additions and 5 deletions

Binary file not shown.

Binary file not shown.

BIN
vendor/raylib/macos-arm64/libraylib.a vendored Normal file

Binary file not shown.

Binary file not shown.

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"