From e1c56c4a9b42e22658fdaa6014b18eacb6278875 Mon Sep 17 00:00:00 2001 From: Edoardo Lolletti Date: Mon, 20 May 2024 20:13:25 +0200 Subject: [PATCH] Don't pass municode flag (not needed since it's a dll) and only enable lto in release builds --- premake5.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/premake5.lua b/premake5.lua index b04ec74a..f83fb677 100644 --- a/premake5.lua +++ b/premake5.lua @@ -67,7 +67,7 @@ if not subproject then filter { "action:not vs*", "system:windows" } buildoptions { "-static-libgcc", "-static-libstdc++", "-static" } - linkoptions { "-municode", "-static-libgcc", "-static-libstdc++", "-static" } + linkoptions { "-static-libgcc", "-static-libstdc++", "-static" } defines { "UNICODE", "_UNICODE" } filter { "system:linux" } @@ -99,7 +99,9 @@ project "ocgcore" project "ocgcoreshared" kind "SharedLib" - flags { "NoImportLib", "LinkTimeOptimization" } + flags "NoImportLib" + filter "configurations:Release" + flags "LinkTimeOptimization" targetname "ocgcore" defines "OCGCORE_EXPORT_FUNCTIONS" staticruntime "on"