From d4f5a0cbdae4d5ce0a824c6cc2b055c850c0f5c1 Mon Sep 17 00:00:00 2001 From: ijet Date: Fri, 23 Oct 2020 13:43:01 +0300 Subject: [PATCH 1/2] Update dub.sdl --- dub.sdl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dub.sdl b/dub.sdl index 015b00d41..98434e64a 100644 --- a/dub.sdl +++ b/dub.sdl @@ -15,7 +15,7 @@ stringImportPaths "res" "res/shaders" excludedSourceFiles "3rdparty/fontconfig.d" platform="windows" libs "z" platform="linux" -lflags "/SUBSYSTEM:WINDOWS" platform="windows" +// lflags "/SUBSYSTEM:WINDOWS" platform="windows" lflags "/ENTRY:mainCRTStartup" platform="windows-dmd" // LDC in startup.d lflags "/SAFESEH:NO" platform="windows-x86" From 110b249b9fbf86a18e0243f24c8a051b2180257e Mon Sep 17 00:00:00 2001 From: ijet Date: Fri, 23 Oct 2020 13:44:50 +0300 Subject: [PATCH 2/2] Update startup.d --- src/beamui/platforms/common/startup.d | 1 + 1 file changed, 1 insertion(+) diff --git a/src/beamui/platforms/common/startup.d b/src/beamui/platforms/common/startup.d index eb62acc05..4a957f27e 100644 --- a/src/beamui/platforms/common/startup.d +++ b/src/beamui/platforms/common/startup.d @@ -557,6 +557,7 @@ version (Windows) { version (LDC) { + pragma(linkerDirective, "/SUBSYSTEM:WINDOWS"); static if (__VERSION__ >= 2091) pragma(linkerDirective, "/ENTRY:wmainCRTStartup"); else