diff options
author | kali <kali@win> | 2021-12-14 18:18:16 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-12-14 18:21:32 +0100 |
commit | 5d9788388c9cf176a331d1fddc708420d88c4ce5 (patch) | |
tree | c85e59d6e63c72201d63067a82a7e6ef07603046 /gui/build.sh | |
parent | a36b1312503d0f5d3e27bd4e296c0c9adb5e492b (diff) |
[pkg] bugfixes windows
Diffstat (limited to 'gui/build.sh')
-rwxr-xr-x | gui/build.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/build.sh b/gui/build.sh index 18d97e1..a9a95fd 100755 --- a/gui/build.sh +++ b/gui/build.sh @@ -39,6 +39,11 @@ then MAKEFLAGS= fi +if [ "$CC" == "cc" ] +then + CC="gcc" +fi + if [ "$XBUILD" == "$WIN64" ] then # TODO allow to override vars @@ -60,7 +65,7 @@ function init { function buildGoLib { echo "[+] Using go in" $GO "[`go version`]" - $GO generate -mod=vendor ./pkg/config/version/genver/gen.go || echo "[!] Error on go generate" + "$GO" generate -mod=vendor ./pkg/config/version/genver/gen.go || echo "[!] Error on go generate" if [ "$PLATFORM" == "Darwin" ] then |