Skip to content

Commit

Permalink
Don't pass municode flag (not needed since it's a dll) and only enabl…
Browse files Browse the repository at this point in the history
…e lto in release builds
  • Loading branch information
edo9300 committed May 20, 2024
1 parent 537d451 commit e1c56c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit e1c56c4

Please sign in to comment.