Support config of postProcess tool

dev/git-series/gccdum
Jason Turner 7 years ago
parent e9af201ce3
commit 28f7ca60cc

@ -144,6 +144,7 @@ function clientOptionsHandler(compilers, fileSources) {
defaultCompiler: compilerProps('defaultCompiler', ''),
compileOptions: compilerProps("options"),
supportsBinary: !!compilerProps("supportsBinary"),
postProcess: compilerProps("postProcess"),
sources: sources
};
var text = JSON.stringify(options);
@ -282,7 +283,8 @@ function configuredCompilers() {
is6g: !!props("is6g", false),
intelAsm: props("intelAsm", ""),
needsMulti: !!props("needsMulti", true),
supportsBinary: !!props("supportsBinary", true)
supportsBinary: !!props("supportsBinary", true),
postProcess: props("postProcess", "")
});
}));
}

@ -254,7 +254,7 @@ Compile.prototype.compile = function (source, compiler, options, filters) {
var compileToAsmPromise = tempFileAndDirPromise.then(function (info) {
var inputFilename = info.inputFilename;
var dirPath = info.dirPath;
var postProcess = compilerProps("postProcess");
var postProcess = compilerInfo.postProcess;
var outputFilename = path.join(dirPath, 'output.S');
if (compilerInfo.options) {
options = options.concat(compilerInfo.options.split(" "));

Loading…
Cancel
Save