Skip to content

Commit

Permalink
Do not set LUA_COMPAT_5_3 when building Lua 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Jul 2, 2024
1 parent 8356294 commit d1eb012
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ impl Build {
_ => panic!("don't know how to build Lua for {}", target),
};

if let Lua54 = version {
config.define("LUA_COMPAT_5_3", None);
#[cfg(feature = "ucid")]
if version == Lua54 && cfg!(feature = "ucid") {
config.define("LUA_UCID", None);
}

Expand Down

0 comments on commit d1eb012

Please sign in to comment.