From d1eb012de0ef9a3c8833783dc2a00bde62bff0b6 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Tue, 2 Jul 2024 23:20:58 +0100 Subject: [PATCH] Do not set `LUA_COMPAT_5_3` when building Lua 5.4 --- src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f434c52..fb53596 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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); }