Skip to content

Commit 8add60b

Browse files
committed
Don't check LUA_LIB_NAME if it's not needed
1 parent c363fb9 commit 8add60b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/find_normal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub fn probe_lua() -> PathBuf {
1717
let need_lua_lib = cfg!(any(not(feature = "module"), target_os = "windows"));
1818

1919
if include_dir != "" && (!need_lua_lib || lib_dir != "") {
20-
if lua_lib == "" {
20+
if need_lua_lib && lua_lib == "" {
2121
panic!("LUA_LIB_NAME is not set");
2222
}
2323
let _version = use_custom_lua(&include_dir, &lib_dir, &lua_lib).unwrap();

0 commit comments

Comments
 (0)