blob: 7e941c6cd0957098e535f6256d32e743b2b6b5ba [file] [log] [blame] [raw]
var Compile = require('../base-compiler');
function compileFPC(info, env) {
var compiler = new Compile(info, env);
compiler.supportsOptOutput = false;
compiler.supportsBinary = false;
compiler.getOutputFilename = function (dirPath, outputFilebase) {
var logger = require('../logger').logger;
var path = require("path");
var outputFilename = path.join(dirPath, outputFilebase + ".o");
logger.info("outputFilename is " + outputFilename);
return outputFilename;
};
compiler.optionsForFilter = function (filters, outputFilename, userOptions) {
filters.execute = false;
return [];
};
return compiler.initialise();
}
module.exports = compileFPC;