From b5d4ab04fc20ddbb7349ab970b45dcc07e6bf3a2 Mon Sep 17 00:00:00 2001 From: partouf Date: Wed, 3 Jan 2018 12:59:15 +0100 Subject: [PATCH] don't use argumentparser on compilers we're certain to not have anything useful --- lib/compilers/WSL-CL.js | 6 ++++++ lib/compilers/Wine-CL.js | 6 ++++++ lib/compilers/pascal.js | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/lib/compilers/WSL-CL.js b/lib/compilers/WSL-CL.js index aacfece45..e0272be87 100644 --- a/lib/compilers/WSL-CL.js +++ b/lib/compilers/WSL-CL.js @@ -68,6 +68,12 @@ function compileCl(info, env) { return false; }; + compile.getArgumentParser = function () { + return function (compiler) { + return compiler; + } + }; + compile.postProcessAsm = function(result) { return RunCLDemangler(this, result); }; diff --git a/lib/compilers/Wine-CL.js b/lib/compilers/Wine-CL.js index 65a548825..82422b45e 100644 --- a/lib/compilers/Wine-CL.js +++ b/lib/compilers/Wine-CL.js @@ -48,6 +48,12 @@ function compileCl(info, env) { return false; }; + compile.getArgumentParser = function () { + return function (compiler) { + return compiler; + } + }; + compile.postProcessAsm = function(result) { return RunCLDemangler(this, result); }; diff --git a/lib/compilers/pascal.js b/lib/compilers/pascal.js index 201ecf5b8..9799d0ebc 100644 --- a/lib/compilers/pascal.js +++ b/lib/compilers/pascal.js @@ -188,6 +188,12 @@ function compileFPC(info, env) { originalExecBinary(executable, result, maxSize); }; + compiler.getArgumentParser = function () { + return function (compiler) { + return compiler; + } + }; + if (info.unitTestMode) { compiler.initialise(); return compiler;