Skip to content

Commit d1eb012

Browse files
committed
Do not set LUA_COMPAT_5_3 when building Lua 5.4
1 parent 8356294 commit d1eb012

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ impl Build {
135135
_ => panic!("don't know how to build Lua for {}", target),
136136
};
137137

138-
if let Lua54 = version {
139-
config.define("LUA_COMPAT_5_3", None);
140-
#[cfg(feature = "ucid")]
138+
if version == Lua54 && cfg!(feature = "ucid") {
141139
config.define("LUA_UCID", None);
142140
}
143141

0 commit comments

Comments
 (0)