diff --git a/Cargo.toml b/Cargo.toml index 9e4d961..edbb1ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,12 +22,6 @@ default = ["builtin-lua"] # * LUA_NUMBER as double # * LUA_EXTRASPACE is sizeof(void*) builtin-lua = ["gcc"] -# Don't define LUA_USE_APICHECK if we are in release mode. When -# debug_assertions are enabled, LUA_USE_APICHECK is enabled regardless. There -# are still a few known ways to trigger LUA_USE_APICHECK checks with rlua, but -# when these bugs are fixed, this option will go away and this behavior will be -# the default. -disable-lua-apicheck = [] [dependencies] libc = { version = "0.2" } diff --git a/build.rs b/build.rs index 7e95a14..6aa2863 100644 --- a/build.rs +++ b/build.rs @@ -21,7 +21,7 @@ fn main() { config.define("LUA_USE_WINDOWS", None); } - if cfg!(debug_assertions) || !cfg!(feature = "disable-lua-apicheck") { + if cfg!(debug_assertions) { config.define("LUA_USE_APICHECK", None); }