# HG changeset patch # User sam # Date 1703668093 -25200 # Node ID 3ba17a9b0c013ea9a5d5cba993e09d9effd4ab08 # Parent 3586266ba74ee9cf06b826c05f8094a4035e31d0 fix: enforce gui-app on windows diff -r 3586266ba74e -r 3ba17a9b0c01 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 3586266ba74e -r 3ba17a9b0c01 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):