From 2d3ff0f84d5de8759ca19ce3071e6a0c50d7c74f Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Mon, 9 Aug 2021 13:55:10 +0200 Subject: [PATCH] Removed console window on Windows. --- cmd/tins2021/tins2021.go | 3 +++ cmd/tins2021/tins2021_allegro.go | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/tins2021/tins2021.go b/cmd/tins2021/tins2021.go index 8deeb19..576d0d6 100644 --- a/cmd/tins2021/tins2021.go +++ b/cmd/tins2021/tins2021.go @@ -13,6 +13,9 @@ import ( "opslag.de/schobers/zntg/ui" ) +// #cgo windows LDFLAGS: -Wl,-subsystem,windows +import "C" + //go:generate go get -u github.com/GeertJohan/go.rice/rice //go:generate rice embed diff --git a/cmd/tins2021/tins2021_allegro.go b/cmd/tins2021/tins2021_allegro.go index 41eb55c..28b1bb3 100644 --- a/cmd/tins2021/tins2021_allegro.go +++ b/cmd/tins2021/tins2021_allegro.go @@ -8,7 +8,6 @@ import ( _ "opslag.de/schobers/zntg/allg5ui" // rendering backend ) -// #cgo windows,allegro LDFLAGS: -Wl,-subsystem,windows import "C" func init() {