aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/golang.js
diff options
context:
space:
mode:
authorRabsRincon <rubrinbla@gmail.com>2017-11-25 01:00:12 +0100
committerRabsRincon <rubrinbla@gmail.com>2017-11-25 01:02:07 +0100
commite72c87413f912be8ec8a8c9ef3b752018c6693fa (patch)
tree54b39362d5c3afc21337aaa516f1803bb5526c65 /lib/compilers/golang.js
parent5d80e83f625a9f02ab892405c292f922bb278d8f (diff)
downloadcompiler-explorer-e72c87413f912be8ec8a8c9ef3b752018c6693fa.tar.gz
compiler-explorer-e72c87413f912be8ec8a8c9ef3b752018c6693fa.zip
Finalize Go implemenation
Finally! Every version should work now!
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 9469e489c..ded9bf0a9 100644
--- a/lib/compilers/golang.js
+++ b/lib/compilers/golang.js
@@ -59,6 +59,10 @@ function compilenewgol(info, env) {
};
compiler.optionsForFilter = function (filters, outputFilename, userOptions) {
+ // If we're dealing with an older version...
+ if (this.compiler.id === '6g141') {
+ return ['tool', '6g', '-g', '-o', outputFilename, '-S'];
+ }
return ['tool', 'compile', '-o', outputFilename, '-S'];
};