Skip to content

Commit

Permalink
Fix the build getting stuck when /link /out: is used to specify the p…
Browse files Browse the repository at this point in the history
…rogram name (#11281)

* Also make sure the mkdir command works
  • Loading branch information
bobbrow committed Aug 3, 2023
1 parent 3bde088 commit ae904ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Extension/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ export function findExePathInArgs(args: string[]): string | undefined {
if (exePath?.startsWith("/Fe")) {
return exePath.substring(3);
}
if (exePath?.toLowerCase().startsWith("/out:")) {
return exePath.substring(5);
}
return exePath;
}

Expand Down Expand Up @@ -538,7 +541,7 @@ export function createDirIfNotExistsSync(filePath: string | undefined): void {
}
const dirPath: string = path.dirname(filePath);
if (!checkDirectoryExistsSync(dirPath)) {
fs.mkdirSync(dirPath);
fs.mkdirSync(dirPath, { recursive: true });
}
}

Expand Down

0 comments on commit ae904ec

Please sign in to comment.