Browse Source

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

dev/git-series/gccdum
Matt Godbolt 6 years ago
parent
commit
aeffa9423b
  1. 3
      etc/config/d.amazon.properties
  2. 5
      lib/compilers/ldc.js

3
etc/config/d.amazon.properties

@ -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

5
lib/compilers/ldc.js

@ -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;

Loading…
Cancel
Save