From 7f7f027f851a028287563a95e8a937895c3fa724 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Thu, 11 Aug 2022 13:25:42 +0200 Subject: [PATCH] Windows: hide console --- xmake.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xmake.lua b/xmake.lua index 9b8a248..dd15b68 100644 --- a/xmake.lua +++ b/xmake.lua @@ -20,4 +20,8 @@ target("UCT") add_links("dl") elseif is_os("windows") then add_ldflags("-static") + -- Hide console + if is_mode("release") then + add_ldflags("mwindows", {force = true}) + end end