Skip to content

Commit 60ec5f1

Browse files
committed
Define LUA_USE_APICHECK under cfg(debug_assertions)
1 parent 8abf59d commit 60ec5f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ impl Build {
110110
config.define("LUA_COMPAT_5_3", None);
111111
}
112112

113+
if cfg!(debug_assertions) {
114+
config.define("LUA_USE_APICHECK", None);
115+
}
116+
113117
let lib_name = match version {
114118
Lua51 => "lua5.1",
115119
Lua52 => "lua5.2",

0 commit comments

Comments
 (0)