diff --git a/Cargo.toml b/Cargo.toml index 56d5fbe..2f47e65 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,4 +12,10 @@ members = [ [profile.release] strip = "debuginfo" + +# The MSVC toolchain cannot handle LTO properly. Some symbol related to +# panic unwind would always be missing. +# So we use a separate profile for when we can compile with LTO. +[profile.release-lto] +inherits = "release" lto = true diff --git a/lib/luajit2-sys b/lib/luajit2-sys index 9ab05ce..18797c4 160000 --- a/lib/luajit2-sys +++ b/lib/luajit2-sys @@ -1 +1 @@ -Subproject commit 9ab05ce18cc35b3235b0cc7665d6e860193c9b11 +Subproject commit 18797c4d2a53834210fd096dd39195ce7f2bce21