From 6e17c056dd7c5d283ae4270705835a2cca509b05 Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Thu, 2 Nov 2023 14:48:56 -0700 Subject: [PATCH] WindowsPlatform: hl mingw sets windows subsystem so that console is not displayed --- tools/platforms/WindowsPlatform.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/platforms/WindowsPlatform.hx b/tools/platforms/WindowsPlatform.hx index 6dd4170f3..d13b27baf 100644 --- a/tools/platforms/WindowsPlatform.hx +++ b/tools/platforms/WindowsPlatform.hx @@ -335,7 +335,7 @@ class WindowsPlatform extends PlatformTarget if (project.targetFlags.exists("hlc")) { - var command = ["gcc", "-O3", "-o", executablePath, "-std=c11", "-I", Path.combine(targetDirectory, "obj"), Path.combine(targetDirectory, "obj/ApplicationMain.c"), "C:/Windows/System32/dbghelp.dll"]; + var command = ["gcc", "-O3", "-o", executablePath, "-std=c11", "-Wl,-subsystem,windows", "-I", Path.combine(targetDirectory, "obj"), Path.combine(targetDirectory, "obj/ApplicationMain.c"), "C:/Windows/System32/dbghelp.dll"]; for (file in System.readDirectory(applicationDirectory)) { switch Path.extension(file)