From 3a97ae5c20f4ed42cad0be76dba22977de272c3a Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 2 Jun 2025 21:59:12 -0400 Subject: [PATCH] Disable luadec in Flatpak for now I will eventually re-enable it later, but it's not super important to have right now. --- extern/CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt index 59be721..e84cc36 100644 --- a/extern/CMakeLists.txt +++ b/extern/CMakeLists.txt @@ -21,7 +21,10 @@ add_subdirectory(tinygltf EXCLUDE_FROM_ALL) add_subdirectory(imgui EXCLUDE_FROM_ALL) add_subdirectory(dxbc EXCLUDE_FROM_ALL) -# For some reason, FFXIV uses a *32-bit* Lua compiler. We have to build it as 32-bit or else loading the bytecode fails. -add_compile_options(-m32) -add_link_options(-m32) -add_subdirectory(luadec51 EXCLUDE_FROM_ALL) +# TODO: Enable in the Flatpak, it's a bit annoying though as we would have to build it separately +if (NOT BUILD_FLATPAK) + # For some reason, FFXIV uses a *32-bit* Lua compiler. We have to build it as 32-bit or else loading the bytecode fails. + add_compile_options(-m32) + add_link_options(-m32) + add_subdirectory(luadec51 EXCLUDE_FROM_ALL) +endif()