slightly cleaner way of linking to an external liblua5.3, if the option is enabled

This commit is contained in:
kyren 2017-07-09 17:05:54 -04:00
parent b8fab1b3ed
commit cc216721b8
2 changed files with 2 additions and 1 deletions

View File

@ -60,6 +60,6 @@ fn main() {
.file("lua/lutf8lib.c") .file("lua/lutf8lib.c")
.file("lua/lvm.c") .file("lua/lvm.c")
.file("lua/lzio.c") .file("lua/lzio.c")
.compile("liblua.a"); .compile("liblua5.3.a");
} }
} }

View File

@ -48,6 +48,7 @@ pub const LUA_TFUNCTION: c_int = 6;
pub const LUA_TUSERDATA: c_int = 7; pub const LUA_TUSERDATA: c_int = 7;
pub const LUA_TTHREAD: c_int = 8; pub const LUA_TTHREAD: c_int = 8;
#[link(name = "lua5.3")]
extern "C" { extern "C" {
pub fn lua_close(state: *mut lua_State); pub fn lua_close(state: *mut lua_State);
pub fn lua_callk( pub fn lua_callk(