|
|
|
@ -85,6 +85,7 @@ function CompileHandler(gccProps, compilerProps) {
|
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
var proxy = httpProxy.createProxyServer({}); |
|
|
|
|
var textBanner = compilerProps('textBanner'); |
|
|
|
|
|
|
|
|
|
this.handler = _.bind(function compile(req, res, next) { |
|
|
|
|
var source, options, filters, compiler; |
|
|
|
@ -149,7 +150,7 @@ function CompileHandler(gccProps, compilerProps) {
|
|
|
|
|
} else { |
|
|
|
|
res.set('Content-Type', 'text/plain'); |
|
|
|
|
try { |
|
|
|
|
res.write("# Compilation provided by Compiler Explorer at " + req.get('Host') + "\n"); |
|
|
|
|
if (!_.isEmpty(textBanner)) res.write('# ' + textBanner + "\n"); |
|
|
|
|
res.write(textify(result.asm)); |
|
|
|
|
if (result.code !== 0) res.write("\n# Compiler exited with result code " + result.code); |
|
|
|
|
if (!_.isEmpty(result.stdout)) res.write("\nStandard out:\n" + textify(result.stdout)); |
|
|
|
|