diff options
author | Patrick Quist <partouf@gmail.com> | 2020-09-06 21:54:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-06 21:54:09 +0200 |
commit | 3c6d1c7e87bef2b1c500648e03f8f441d0f18e38 (patch) | |
tree | 990180a7bee6d9625c81ebe4fb6c224f05812346 /lib/compilers/golang.js | |
parent | 3a5420f3d2ffb6a714dba7cd381fa3fdee99fbf8 (diff) | |
download | compiler-explorer-3c6d1c7e87bef2b1c500648e03f8f441d0f18e38.tar.gz compiler-explorer-3c6d1c7e87bef2b1c500648e03f8f441d0f18e38.zip |
add wasm variants for GO (#2187)
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; } |