mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 00:59:23 -06:00
fix things
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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[] {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user