Still work to do on #640 but this one is already ok!
This commit is contained in:
RabsRincon
2017-11-23 19:50:47 +01:00
parent 298cd16347
commit cb0fc7fb04
3 changed files with 31 additions and 17 deletions
+17 -16
View File
@@ -1,7 +1,8 @@
defaultCompiler=gl192
textBanner=Compilation provided by Compiler Explorer at https://go.godbolt.org/
objdumper=/opt/compiler-explorer/gcc-7.2.0/bin/objdump
compilers=gccgo494:gccgo630:6g141:gccgo720:gl172:gl185:gl192
# 1.7.2 & 1.8.5 disabled until we build them from source
compilers=gccgo494:gccgo630:6g141:gccgo720:gl192
compileFilename=file.go
compiler.gccgo494.exe=/opt/compiler-explorer/gcc-4.9.4/bin/gccgo
compiler.gccgo494.alias=gccgo491
@@ -11,24 +12,24 @@ compiler.gccgo630.name=x86 gccgo 6.3.0
compiler.gccgo720.exe=/opt/compiler-explorer/gcc-7.2.0/bin/gccgo
compiler.gccgo720.name=x86 gccgo 7.2.0
compiler.6g141.exe=/opt/compiler-explorer/go/pkg/tool/linux_amd64/6g
compiler.6g141.name=x86 6g 1.4.1
compiler.6g141.name=x86 gc 1.4.1
compiler.6g141.versionFlag=-V
compiler.6g141.compilerType=6g
compiler.6g141.supportsBinary=false
compiler.gl172.exe=/opt/compiler-explorer/golang-1.7.2/go/pkg/tool/linux_amd64/compile
compiler.gl172.name=x86 GoLang 1.7.2
compiler.gl172.versionFlag=-V
compiler.gl172.compilerType=6g
compiler.gl172.supportsBinary=false
compiler.gl185.exe=/opt/compiler-explorer/golang-1.8.5/go/pkg/tool/linux_amd64/compile
compiler.gl185.name=x86 GoLang 1.8.5
compiler.gl185.versionFlag=-V
compiler.gl185.compilerType=newgol
compiler.gl185.supportsBinary=false
compiler.gl192.exe=/opt/compiler-explorer/golang-1.9.2/go/pkg/tool/linux_amd64/compile
compiler.gl192.name=x86 GoLang 1.9.2
compiler.gl192.versionFlag=-V
compiler.gl192.compilerType=newgol
#compiler.gl172.exe=/opt/compiler-explorer/golang-1.7.2/go/bin/go
#compiler.gl172.name=x86 gc 1.7.2
#compiler.gl172.versionFlag=version
#compiler.gl172.compilerType=golang
#compiler.gl172.supportsBinary=false
#compiler.gl185.exe=/opt/compiler-explorer/golang-1.8.5/go/bin/go
#compiler.gl185.name=x86 gc 1.8.5
#compiler.gl185.versionFlag=version
#compiler.gl185.compilerType=golang
#compiler.gl185.supportsBinary=false
compiler.gl192.exe=/opt/compiler-explorer/golang-1.9.2/go/bin/go
compiler.gl192.name=x86 gc 1.9.2
compiler.gl192.versionFlag=version
compiler.gl192.compilerType=golang
compiler.gl192.supportsBinary=false
@@ -58,7 +58,7 @@ function compilenewgol(info, env) {
};
compiler.optionsForFilter = function (filters, outputFilename, userOptions) {
return ['-o', outputFilename, '-S'];
return ['tool', 'compile', '-o', outputFilename, '-S'];
};
return compiler.initialise();
}
+13
View File
@@ -475,6 +475,7 @@ define(function (require) {
this.eventHub.on('initialised', this.undefer, this);
this.saveState();
this.checkCompiler();
}
Compiler.prototype.undefer = function () {
@@ -862,6 +863,8 @@ define(function (require) {
this.updateButtons();
this.updateCompilerName();
this.sendCompiler();
// Let the user know if the user chooses a poorly supported Go version
this.checkCompiler();
};
Compiler.prototype.sendCompiler = function () {
@@ -1123,6 +1126,16 @@ define(function (require) {
);
};
// Checks the current compiler for special cases
Compiler.prototype.checkCompiler = function() {
// Go older 1.4.1 is poorly supported right now. Let people know
if (this.compiler.id === '6g141') {
new Alert().notify('gc 1.4.1 is poorly supported right now. Consider using a newer gc version!', {
group: 'gc-update'
});
}
};
return {
Compiler: Compiler
};