diff options
author | Matt Godbolt <matt@godbolt.org> | 2022-12-28 11:42:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-28 11:42:14 -0600 |
commit | 749319f7912ff479d25d9afb1e751f4ea704b0e2 (patch) | |
tree | 6f1504440fcdaf033dc406d454bb00299b0d8fa6 /lib/compilers/clean.js | |
parent | b597095f6ee657e6b1fde4b02f9bb2f61457d225 (diff) | |
download | compiler-explorer-749319f7912ff479d25d9afb1e751f4ea704b0e2.tar.gz compiler-explorer-749319f7912ff479d25d9afb1e751f4ea704b0e2.zip |
Slightly more controversial bumpings (#4503)gh-5552
- latest sentry, tar-stream, which, some yamljs versions
- latest eslint-* stuff
- latest webpack manifest
- Applies all the automatic fixes for newer lint rules
- Bump the webpack version
applies new tslint stuff
Diffstat (limited to 'lib/compilers/clean.js')
-rw-r--r-- | lib/compilers/clean.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/compilers/clean.js b/lib/compilers/clean.js index 26dfc28c6..c159ba1d5 100644 --- a/lib/compilers/clean.js +++ b/lib/compilers/clean.js @@ -128,7 +128,11 @@ export class CleanCompiler extends BaseCompiler { result.stdout = utils.parseOutput(this.preprocessOutput(result.stdout), inputFilename); result.stderr = utils.parseOutput(this.preprocessOutput(result.stderr), inputFilename); - if (!options.includes('-S')) { + if (options.includes('-S')) { + if (await fs.pathExists(this.getOutputFilename(tmpDir))) { + result.code = 0; + } + } else { const aOut = path.join(tmpDir, 'a.out'); if (await fs.pathExists(aOut)) { await fs.copyFile(aOut, this.getOutputFilename(tmpDir)); @@ -136,10 +140,6 @@ export class CleanCompiler extends BaseCompiler { } else { result.code = 1; } - } else { - if (await fs.pathExists(this.getOutputFilename(tmpDir))) { - result.code = 0; - } } return result; } |