Remove ICompiler, other minor type fixes (#7079)

This commit is contained in:
Ofek
2024-11-25 18:36:20 +02:00
committed by GitHub
parent 636675c476
commit 20b8ccaa6f
13 changed files with 47 additions and 62 deletions

View File

@@ -22,20 +22,11 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
import {
ActiveTool,
BypassCache,
CompilationResult,
ExecutionParams,
FiledataPair,
} from './compilation/compilation.interfaces.js';
import {AllCompilerOverrideOptions} from './compilation/compiler-overrides.interfaces.js';
import {ICompilerArguments} from './compiler-arguments.interfaces.js';
import {PossibleRuntimeTools} from './execution/execution.interfaces.js';
import {ParseFiltersAndOutputOptions} from './features/filters.interfaces.js';
import {InstructionSet} from './instructionsets.js';
import {Language, LanguageKey} from './languages.interfaces.js';
import {Library, SelectedLibraryVersion} from './libraries/libraries.interfaces.js';
import {LanguageKey} from './languages.interfaces.js';
import {Library} from './libraries/libraries.interfaces.js';
import {Tool, ToolInfo} from './tool.interfaces.js';
export type Remote = {
@@ -167,22 +158,3 @@ export type CompilerInfo = {
export type PreliminaryCompilerInfo = Omit<CompilerInfo, 'version' | 'fullVersion' | 'baseName' | 'disabledFilters'> & {
version?: string;
};
export interface ICompiler {
possibleArguments: ICompilerArguments;
lang: Language;
compile(
source: string,
options: string[],
backendOptions: Record<string, any>,
filters: ParseFiltersAndOutputOptions,
bypassCache: BypassCache,
tools: ActiveTool[],
executeParameters: ExecutionParams,
libraries: SelectedLibraryVersion[],
files: FiledataPair[],
): Promise<any>;
cmake(files: FiledataPair[], key, bypassCache: BypassCache): Promise<CompilationResult>;
initialise(mtime: Date, clientOptions, isPrediscovered: boolean): Promise<ICompiler | null>;
getInfo(): CompilerInfo;
}