diff options
Diffstat (limited to 'lib/compilers/golang.js')
-rw-r--r-- | lib/compilers/golang.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/compilers/golang.js b/lib/compilers/golang.js index 2426fceb2..9c6761f7b 100644 --- a/lib/compilers/golang.js +++ b/lib/compilers/golang.js @@ -219,6 +219,10 @@ class GolangCompiler extends BaseCompiler { if (goarch) { execOptions.env.GOARCH = goarch; } + const goos = this.compilerProps(`compiler.${this.compiler.id}.goos`); + if (goos) { + execOptions.env.GOOS = goos; + } return execOptions; } |