fix things

This commit is contained in:
Partouf
2024-05-14 07:48:21 +02:00
parent 9697bb43d6
commit 55bd7ecebd
4 changed files with 13 additions and 6 deletions
+2 -1
View File
@@ -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) {
+4 -2
View File
@@ -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) {
+3 -2
View File
@@ -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[] {
+4 -1
View File
@@ -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<string, any> = {};
// Reset the supportsExecute flag in case critical compilers change