diff options
author | Patrick Quist <partouf@gmail.com> | 2023-11-22 03:06:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 03:06:26 +0100 |
commit | 04efa86241d23ecc3c7eb445fa3f3ef6147c5c1d (patch) | |
tree | 987b2047ff4fbf1ce1528ed508547724e69de02e /lib/compilers/win32-mingw-gcc.ts | |
parent | d2f4617d0d3af594c6769b2b86d721d0aa29ef84 (diff) | |
download | compiler-explorer-04efa86241d23ecc3c7eb445fa3f3ef6147c5c1d.tar.gz compiler-explorer-04efa86241d23ecc3c7eb445fa3f3ef6147c5c1d.zip |
Changes to support CMake for Windows (#5769)gh-9647
Diffstat (limited to 'lib/compilers/win32-mingw-gcc.ts')
-rw-r--r-- | lib/compilers/win32-mingw-gcc.ts | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/lib/compilers/win32-mingw-gcc.ts b/lib/compilers/win32-mingw-gcc.ts index 715b1e0c1..8be71cf56 100644 --- a/lib/compilers/win32-mingw-gcc.ts +++ b/lib/compilers/win32-mingw-gcc.ts @@ -24,12 +24,7 @@ import path from 'path'; -import { - BuildResult, - BypassCache, - CompilationResult, - ExecutionOptions, -} from '../../types/compilation/compilation.interfaces.js'; +import {BuildResult, BypassCache, CompilationResult} from '../../types/compilation/compilation.interfaces.js'; import {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfaces.js'; import {copyNeededDlls} from '../win-utils.js'; @@ -41,8 +36,10 @@ export class Win32MingWGcc extends GCCCompiler { return 'win32-mingw-gcc'; } - getExtraPaths(): string[] { - return [path.normalize(path.dirname(this.compiler.exe))]; + override getExtraPaths(): string[] { + const paths: string[] = super.getExtraPaths(); + + return [...paths, path.normalize(path.dirname(this.compiler.exe))]; } override optionsForFilter( @@ -82,15 +79,6 @@ export class Win32MingWGcc extends GCCCompiler { ); } - override getDefaultExecOptions(): ExecutionOptions & {env: Record<string, string>} { - const options = super.getDefaultExecOptions(); - if (!options.env) options.env = {}; - if (!options.env.PATH) options.env.PATH = ''; - options.env.PATH = this.getExtraPaths().join(path.delimiter); - - return options; - } - override async buildExecutableInFolder(key, dirPath: string): Promise<BuildResult> { const result = await super.buildExecutableInFolder(key, dirPath); |