diff options
author | ramang-unity <58699637+ramang-unity@users.noreply.github.com> | 2024-05-02 18:12:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-03 00:12:48 +0200 |
commit | 4fbc2d496e1ae616db57e3bc9d5556128ef8e42c (patch) | |
tree | 7488304fbd553575bd5d6fab280561f7c44e01ca /lib/compilers/argument-parsers.ts | |
parent | 86631cfacff6bfab9803b9f125bc9ecfba67f40c (diff) | |
download | compiler-explorer-4fbc2d496e1ae616db57e3bc9d5556128ef8e42c.tar.gz compiler-explorer-4fbc2d496e1ae616db57e3bc9d5556128ef8e42c.zip |
Fix #6301 (#6422)
Diffstat (limited to 'lib/compilers/argument-parsers.ts')
-rw-r--r-- | lib/compilers/argument-parsers.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compilers/argument-parsers.ts b/lib/compilers/argument-parsers.ts index 4a7279b72..c1699ce9e 100644 --- a/lib/compilers/argument-parsers.ts +++ b/lib/compilers/argument-parsers.ts @@ -419,7 +419,8 @@ export class ClangParser extends BaseParser { static override async getOptions(compiler, helpArg, populate = true, isolate = false) { const optionFinderWithDesc = /^ {2}?(--?[\d#+,<=>A-Z[\]a-z|-]*\s?[\d+,<=>A-Z[\]a-z|-]*)\s+([A-Z].*)/; const optionFinderWithoutDesc = /^ {2}?(--?[\d#+,<=>[\]a-z|-]*\s?[\d+,<=>[\]a-z|-]*)/i; - const execOptions = isolate ?? {...compiler.getDefaultExecOptions(), createAndUseTempDir: true}; + const execOptions = {...compiler.getDefaultExecOptions()}; + if (isolate) execOptions.createAndUseTempDir = true; const result = await compiler.execCompilerCached(compiler.compiler.exe, helpArg.split(' '), execOptions); const options = result.code === 0 |