# HG changeset patch # User sam # Date 1703668093 -25200 # Node ID 7c31e5a780f151eba1760f2eb666c6414847f361 # Parent 73e96ca349fdf5f2f39f9cff209b8755a41c64f5 fix: enforce gui-app on windows diff -r 73e96ca349fd -r 7c31e5a780f1 semicongine/build.nim --- a/semicongine/build.nim Wed Dec 27 16:01:05 2023 +0700 +++ b/semicongine/build.nim Wed Dec 27 16:08:13 2023 +0700 @@ -24,7 +24,9 @@ switch("experimental", "strictFuncs") switch("define", "nimPreviewHashRef") if defined(linux): switch("define", "VK_USE_PLATFORM_XLIB_KHR") - if defined(windows): switch("define", "VK_USE_PLATFORM_WIN32_KHR") + if defined(windows): + switch("define", "VK_USE_PLATFORM_WIN32_KHR") + switch("app", "gui") switch("outdir", semicongine_builddir(buildname, builddir=builddir)) proc semicongine_pack*(outdir: string, bundleType: string, resourceRoot: string) = diff -r 73e96ca349fd -r 7c31e5a780f1 semicongine/core/buildconfig.nim --- a/semicongine/core/buildconfig.nim Wed Dec 27 16:01:05 2023 +0700 +++ b/semicongine/core/buildconfig.nim Wed Dec 27 16:08:13 2023 +0700 @@ -9,8 +9,8 @@ assert compileOption("threads"), ENGINENAME & " requires --threads=on" assert defined(nimPreviewHashRef), ENGINENAME & " requires -d:nimPreviewHashRef" - if defined(release): - assert compileOption("app", "gui"), ENGINENAME & " requires --app=gui for release builds" + if defined(release) or defined(windows): + assert compileOption("app", "gui"), ENGINENAME & " requires --app=gui for release builds and all windows builds" if defined(linux):