Fix up ldc. Actually test it first *blush*. See #300

This commit is contained in:
Matt Godbolt 2017-03-03 15:15:02 -06:00
parent d4f9968235
commit aeffa9423b
2 changed files with 3 additions and 5 deletions

View File

@ -1,8 +1,7 @@
compilers=gdc48:gdc49:gdc52:&ldc
textBanner=Compilation provided by Compiler Explorer at https://d.godbolt.org/
defaultCompiler=gdc52
# This is only due to limitations on the d.godbolt.org image for now.
supportsBinary=false
compiler.gdc49.exe=/opt/compiler-explorer/gdc4.9.3/x86_64-pc-linux-gnu/bin/gdc
compiler.gdc49.alias=/opt/x86_64-gdcproject-linux-gnu/bin/gdc
compiler.gdc49.name=gdc 4.9.3

View File

@ -26,15 +26,14 @@ var Compile = require('../base-compiler');
function compileLdc(info, env) {
var compiler = new Compile(info, env);
// TODO this needs testing!
compiler.compiler.supportsIntel = true;
compiler.optionsForFilter = function (filters, outputFilename) {
var options = ['-g', '-of', this.filename(outputFilename)];
if (filters.intel && !filters.binary) options.concat('-x86-asm-syntax=intel');
if (filters.intel && !filters.binary) options = options.concat('-x86-asm-syntax=intel');
if (!filters.binary) options = options.concat('-output-s');
return options;
};
return compiler.initialise();
}
module.exports = compileLdc;
module.exports = compileLdc;