From d9a2a46c68db34e5976aa10c6dca98c1fc913253 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Tue, 22 Mar 2022 23:21:32 +0000 Subject: [PATCH] v0.2.1+luau519 Disable `LUA_USE_LONGJMP` --- Cargo.toml | 2 +- src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a505f12..7826b78 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "luau0-src" -version = "0.2.0+luau519" +version = "0.2.1+luau519" authors = ["Aleksandr Orlenko "] edition = "2018" repository = "https://github.com/khvzak/luau-src-rs" diff --git a/src/lib.rs b/src/lib.rs index 098c445..3a77a39 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -111,7 +111,8 @@ impl Build { .clone() .include(&vm_include_dir) .define("LUA_API", "extern \"C\"") - .define("LUA_USE_LONGJMP", "1") + // Works 9 times slower, see https://github.com/Roblox/luau/issues/425 + // .define("LUA_USE_LONGJMP", "1") .add_files_by_ext(&vm_source_dir, "cpp") .out_dir(&lib_dir) .compile(vm_lib_name);