File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,6 @@ fn generate_glue() -> std::io::Result<()> {
141
141
write ! ( glue, "pub type LUA_UNSIGNED = u64;\n " ) ?;
142
142
143
143
let version = if cfg ! ( feature = "luajit" ) || cfg ! ( feature = "lua51" ) {
144
- // Note: luajit is ~lua 5.1, but it doesn't itself cross compile
145
144
( 5 , 1 , 0 )
146
145
} else if cfg ! ( feature = "lua52" ) {
147
146
( 5 , 2 , 0 )
@@ -192,7 +191,11 @@ fn generate_glue() -> std::io::Result<()> {
192
191
write ! (
193
192
glue,
194
193
r#"
194
+ #[cfg(feature = "luajit")]
195
+ pub const LUA_BITLIBNAME: &str = "bit";
196
+ #[cfg(not(feature = "luajit"))]
195
197
pub const LUA_BITLIBNAME: &str = "bit32";
198
+
196
199
pub const LUA_COLIBNAME: &str = "coroutine";
197
200
pub const LUA_DBLIBNAME: &str = "debug";
198
201
pub const LUA_IOLIBNAME: &str = "io";
@@ -203,6 +206,8 @@ pub const LUA_STRLIBNAME: &str = "string";
203
206
pub const LUA_TABLIBNAME: &str = "table";
204
207
pub const LUA_UTF8LIBNAME: &str = "utf8";
205
208
209
+ pub const LUA_JITLIBNAME: &str = "jit";
210
+ pub const LUA_FFILIBNAME: &str = "ffi";
206
211
"#
207
212
) ?;
208
213
You can’t perform that action at this time.
0 commit comments