slightly cleaner way of linking to an external liblua5.3, if the option is enabled
This commit is contained in:
parent
b8fab1b3ed
commit
cc216721b8
2
build.rs
2
build.rs
|
@ -60,6 +60,6 @@ fn main() {
|
|||
.file("lua/lutf8lib.c")
|
||||
.file("lua/lvm.c")
|
||||
.file("lua/lzio.c")
|
||||
.compile("liblua.a");
|
||||
.compile("liblua5.3.a");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,6 +48,7 @@ pub const LUA_TFUNCTION: c_int = 6;
|
|||
pub const LUA_TUSERDATA: c_int = 7;
|
||||
pub const LUA_TTHREAD: c_int = 8;
|
||||
|
||||
#[link(name = "lua5.3")]
|
||||
extern "C" {
|
||||
pub fn lua_close(state: *mut lua_State);
|
||||
pub fn lua_callk(
|
||||
|
|
Loading…
Reference in New Issue