Skip to content

Commit

Permalink
Fix bug where windows cross compiling dlls would not work on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Apr 17, 2023
1 parent 4be0ea3 commit b6228f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/webserver/buildmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func Build(goos, goarch, suppliedConnectBackAdress, fingerprint, name, comment s
if shared {

var crossCompiler string
if runtime.GOOS == "linux" && f.Goos == "windows" && f.Goarch == "amd64" {
if (runtime.GOOS == "linux" || runtime.GOOS == "darwin") && f.Goos == "windows" && f.Goarch == "amd64" {
crossCompiler = "x86_64-w64-mingw32-gcc"
}

Expand Down

0 comments on commit b6228f0

Please sign in to comment.