aboutsummaryrefslogtreecommitdiff
path: root/lib/base-compiler.js
diff options
context:
space:
mode:
authorPatrick Quist <partouf@gmail.com>2022-02-17 16:50:02 +0100
committerGitHub <noreply@github.com>2022-02-17 16:50:02 +0100
commit0bc22bb1485fa6c7a3eee1129caade76f68662c3 (patch)
tree2a8cd2395fa885c8746d84f69577584a5122a639 /lib/base-compiler.js
parentaf08dc4d1a5f11fa65b8a858ac3dae3f6cd02d13 (diff)
downloadcompiler-explorer-0bc22bb1485fa6c7a3eee1129caade76f68662c3.tar.gz
compiler-explorer-0bc22bb1485fa6c7a3eee1129caade76f68662c3.zip
when no files are supplied, no need to do anything special for them either (#3371)gh-2017
Diffstat (limited to 'lib/base-compiler.js')
-rw-r--r--lib/base-compiler.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/base-compiler.js b/lib/base-compiler.js
index ed1d4a537..5f2802404 100644
--- a/lib/base-compiler.js
+++ b/lib/base-compiler.js
@@ -1073,7 +1073,7 @@ export class BaseCompiler {
const inputFilename = path.join(dirPath, this.compileFilename);
await fs.writeFile(inputFilename, source);
- if (files) {
+ if (files && files.length > 0) {
filters.dontMaskFilenames = true;
await this.writeMultipleFiles(files, dirPath);
@@ -1090,7 +1090,7 @@ export class BaseCompiler {
const inputFilename = path.join(dirPath, 'CMakeLists.txt');
await fs.writeFile(inputFilename, source);
- if (files) {
+ if (files && files.length > 0) {
filters.dontMaskFilenames = true;
await this.writeMultipleFiles(files, dirPath);