diff options
author | nickpdemarco <nickpdemarco@gmail.com> | 2023-10-11 14:43:05 -0400 |
---|---|---|
committer | nickpdemarco <nickpdemarco@gmail.com> | 2023-10-11 14:43:05 -0400 |
commit | 9cda199e40c920fcc9c53082b0dabb17d31a8b7f (patch) | |
tree | a4e9a03a9feea17376f5990e19c12818d32ec95e /lib/compilers/wsl-vc.ts | |
parent | 55a2b1455f823026c78b9219f93799af00ef60ae (diff) | |
parent | 10796b3696cf1eef928de8c750b4d3350ee0c2db (diff) | |
download | compiler-explorer-9cda199e40c920fcc9c53082b0dabb17d31a8b7f.tar.gz compiler-explorer-9cda199e40c920fcc9c53082b0dabb17d31a8b7f.zip |
Merge main, resolve conflicts with vala
Diffstat (limited to 'lib/compilers/wsl-vc.ts')
-rw-r--r-- | lib/compilers/wsl-vc.ts | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/compilers/wsl-vc.ts b/lib/compilers/wsl-vc.ts index 5195341af..1908cb05f 100644 --- a/lib/compilers/wsl-vc.ts +++ b/lib/compilers/wsl-vc.ts @@ -60,7 +60,7 @@ export class WslVcCompiler extends Win32VcCompiler { // NPM temp package: https://www.npmjs.com/package/temp, see Affixes override newTempDir() { return new Promise<string>((resolve, reject) => { - temp.mkdir({prefix: 'compiler-explorer-compiler', dir: process.env.winTmp}, (err, dirPath) => { + temp.mkdir({prefix: 'compiler-explorer-compiler', dir: unwrap(process.env.winTmp)}, (err, dirPath) => { if (err) reject(`Unable to open temp file: ${err}`); else resolve(dirPath); }); @@ -82,7 +82,12 @@ export class WslVcCompiler extends Win32VcCompiler { return super.exec(compiler, args, options); } - override runCompiler(compiler: string, options: string[], inputFilename: string, execOptions: ExecutionOptions) { + override async runCompiler( + compiler: string, + options: string[], + inputFilename: string, + execOptions: ExecutionOptions & {env: Record<string, string>}, + ) { if (!execOptions) { execOptions = this.getDefaultExecOptions(); } @@ -94,6 +99,6 @@ export class WslVcCompiler extends Win32VcCompiler { const directoryPath = inputDirectory.substring(2).trim(); execOptions.customCwd = path.join('/mnt', driveLetter, directoryPath); - return super.runCompiler(compiler, options, inputFilename, execOptions); + return await super.runCompiler(compiler, options, inputFilename, execOptions); } } |