Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ramang-unity authored May 2, 2024
1 parent 86631cf commit 4fbc2d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/compilers/argument-parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fbc2d4

Please sign in to comment.