Update LUA imports for Darwin.

This commit is contained in:
Jeroen van Rijn
2024-07-20 14:24:01 +02:00
parent 64614889de
commit 2385e1ddd9
4 changed files with 24 additions and 16 deletions
+6 -2
View File
@@ -15,16 +15,20 @@ when LUA_SHARED {
foreign import lib "windows/lua5.1.dll.lib"
} else when ODIN_OS == .Linux {
foreign import lib "linux/liblua5.1.so"
} else when ODIN_OS == .Darwin {
foreign import lib "system:lua5.1"
} else {
foreign import lib "system:liblua.so.5.1"
#panic("LUA import not defined for this platform")
}
} else {
when ODIN_OS == .Windows {
foreign import lib "windows/lua5.1.dll.lib"
} else when ODIN_OS == .Linux {
foreign import lib "linux/liblua5.1.a"
} else when ODIN_OS == .Darwin {
foreign import lib "system:lua5.1"
} else {
foreign import lib "system:liblua5.1.a"
#panic("LUA import not defined for this platform")
}
}