diff options
author | Partouf <partouf@gmail.com> | 2018-10-06 14:13:04 +0200 |
---|---|---|
committer | Partouf <partouf@gmail.com> | 2018-10-06 23:56:49 +0200 |
commit | ad542bc390e8751e0b8f741d4e23bc694fed5651 (patch) | |
tree | 2a2422e3b54d3398d386af6af29f501ea0fea18d /lib/compilers/clean.js | |
parent | 6a769c1ebaf884bde03afa20c34ad386d011d281 (diff) | |
download | compiler-explorer-ad542bc390e8751e0b8f741d4e23bc694fed5651.tar.gz compiler-explorer-ad542bc390e8751e0b8f741d4e23bc694fed5651.zip |
formatting
Diffstat (limited to 'lib/compilers/clean.js')
-rw-r--r-- | lib/compilers/clean.js | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/lib/compilers/clean.js b/lib/compilers/clean.js index ef42fdc4b..e3c67a60b 100644 --- a/lib/compilers/clean.js +++ b/lib/compilers/clean.js @@ -22,37 +22,38 @@ // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. -const BaseCompiler = require('../base-compiler'), - fs = require('fs-extra'), - path = require('path'), - logger = require('../logger').logger; +const + BaseCompiler = require('../base-compiler'), + fs = require('fs-extra'), + path = require('path'), + logger = require('../logger').logger; class CleanCompiler extends BaseCompiler { optionsForFilter(filters, outputFilename) { - if (filters.binary) { - } else { - return ['-S']; - } + if (filters.binary) { + } else { + return ['-S']; + } } getOutputFilename(dirPath, outputFilebase) { - return path.join(dirPath, "Clean System Files/example.s"); + return path.join(dirPath, "Clean System Files/example.s"); } runCompiler(compiler, options, inputFilename, execOptions) { - const tmpDir = path.dirname(inputFilename); - const moduleName = path.basename(inputFilename, '.icl'); - execOptions = this.getDefaultExecOptions(); - execOptions.customCwd = tmpDir; - execOptions.env.CLEANLIB = path.join(path.dirname(compiler), "../exe"); - options.pop(); - options.push(moduleName); - return super.runCompiler(compiler, options, moduleName, execOptions).then(result => { - if (fs.existsSync(this.getOutputFilename(tmpDir))) { - result.code = 0; - } - return result; - }); + const tmpDir = path.dirname(inputFilename); + const moduleName = path.basename(inputFilename, '.icl'); + execOptions = this.getDefaultExecOptions(); + execOptions.customCwd = tmpDir; + execOptions.env.CLEANLIB = path.join(path.dirname(compiler), "../exe"); + options.pop(); + options.push(moduleName); + return super.runCompiler(compiler, options, moduleName, execOptions).then(result => { + if (fs.existsSync(this.getOutputFilename(tmpDir))) { + result.code = 0; + } + return result; + }); } } |