From d1015cdc937914e609038941bb9ef46cc864cc15 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Fri, 3 Feb 2023 09:07:56 +0100 Subject: [PATCH] Compile Nazara statically only when targetting WASM --- xmake.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xmake.lua b/xmake.lua index 22f1404d1..d55cf0a80 100644 --- a/xmake.lua +++ b/xmake.lua @@ -265,7 +265,10 @@ elseif is_mode("releasedbg", "release") then add_vectorexts("sse", "sse2", "sse3", "ssse3") end -if is_kind("static") then +if is_plat("wasm") + set_kind("shared") +else + set_kind("static") add_defines("NAZARA_STATIC") end @@ -369,7 +372,6 @@ end for name, module in pairs(modules) do target("Nazara" .. name, function () - set_kind("$(kind)") set_group("Modules") add_rpathdirs("$ORIGIN")