aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/golang.js
diff options
context:
space:
mode:
authorPatrick Quist <partouf@gmail.com>2020-09-06 21:54:09 +0200
committerGitHub <noreply@github.com>2020-09-06 21:54:09 +0200
commit3c6d1c7e87bef2b1c500648e03f8f441d0f18e38 (patch)
tree990180a7bee6d9625c81ebe4fb6c224f05812346 /lib/compilers/golang.js
parent3a5420f3d2ffb6a714dba7cd381fa3fdee99fbf8 (diff)
downloadcompiler-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.js4
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;
}