diff --git a/lib/buildenvsetup/base.ts b/lib/buildenvsetup/base.ts index 1da72131f..a24cd5ecf 100644 --- a/lib/buildenvsetup/base.ts +++ b/lib/buildenvsetup/base.ts @@ -56,7 +56,8 @@ export class BuildEnvSetupBase { } protected props(propName: string, def?: any): any { - return this.env.compilerProps.get(this.compiler.lang, 'buildenvsetup.' + propName, def); + const propFunc = this.env.compilerProps as any; + return propFunc(this.compiler.lang, 'buildenvsetup.' + propName, def); } async initialise(execCompilerCachedFunc) { diff --git a/lib/buildenvsetup/ceconan.ts b/lib/buildenvsetup/ceconan.ts index 7a3772f06..4e251e32e 100644 --- a/lib/buildenvsetup/ceconan.ts +++ b/lib/buildenvsetup/ceconan.ts @@ -30,7 +30,9 @@ import request from 'request'; import tar from 'tar-stream'; import _ from 'underscore'; +import {CompilerInfo} from '../../types/compiler.interfaces.js'; import {LibraryVersion} from '../../types/libraries/libraries.interfaces.js'; +import {CompilationEnvironment} from '../compilation-env.js'; import {logger} from '../logger.js'; import {BuildEnvSetupBase} from './base.js'; @@ -56,14 +58,14 @@ export class BuildEnvSetupCeConanDirect extends BuildEnvSetupBase { return 'ceconan'; } - constructor(compilerInfo, env) { + constructor(compilerInfo: CompilerInfo, env: CompilationEnvironment) { super(compilerInfo, env); this.host = this.props('host', false); this.onlyonstaticliblink = this.props('onlyonstaticliblink', false); this.extractAllToRoot = false; - if (env.debug) request.debug = true; + // if (env.debug) request.debug = true; } async getAllPossibleBuilds(libid, version) { diff --git a/lib/external-parsers/base.ts b/lib/external-parsers/base.ts index 43e47598b..eca1fd89e 100644 --- a/lib/external-parsers/base.ts +++ b/lib/external-parsers/base.ts @@ -20,7 +20,7 @@ export class ExternalParserBase implements IExternalParser { private compilerInfo: CompilerInfo; private envInfo: CompilationEnvironment; - constructor(compilerInfo: CompilerInfo, envInfo, execFunc: TypicalExecutionFunc) { + constructor(compilerInfo: CompilerInfo, envInfo: CompilationEnvironment, execFunc: TypicalExecutionFunc) { this.compilerInfo = compilerInfo; this.envInfo = envInfo; this.objdumperPath = compilerInfo.objdumper; @@ -33,7 +33,8 @@ export class ExternalParserBase implements IExternalParser { } protected props(propName: string, def: any): any { - return this.envInfo.compilerProps.get(this.compilerInfo.lang, 'externalparser.' + propName, def); + const propFunc = this.envInfo.compilerProps as any; + return propFunc(this.compilerInfo.lang, 'externalparser.' + propName, def); } private getParserArguments(filters: ParseFiltersAndOutputOptions, fromStdin: boolean): string[] { diff --git a/lib/options-handler.ts b/lib/options-handler.ts index 138ed7463..5230eb846 100755 --- a/lib/options-handler.ts +++ b/lib/options-handler.ts @@ -439,7 +439,10 @@ export class ClientOptionsHandler { 'demanglerType', 'isSemVer', ]); - const copiedCompilers = structuredClone(compilers); + + // eslint-disable-next-line unicorn/prefer-structured-clone + const copiedCompilers = JSON.parse(JSON.stringify(compilers)); + const semverGroups: Record = {}; // Reset the supportsExecute flag in case critical compilers change