MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / exec

Method exec

lib/compilers/pascal-win.ts:64–76  ·  view source on GitHub ↗
(command: string, args: string[], options: ExecutionOptions)

Source from the content-addressed store, hash-verified

62 }
63
64 override exec(command: string, args: string[], options: ExecutionOptions) {
65 if (process.platform === 'linux' || process.platform === 'darwin') {
66 const wine = this.env.ceProps<string>('wine');
67
68 args = args.slice(0);
69 if (command.toLowerCase().endsWith('.exe')) {
70 args.unshift(command);
71 command = wine;
72 }
73 }
74
75 return super.exec(command, args, options);
76 }
77
78 override getExecutableFilename(dirPath: string) {
79 return path.join(dirPath, 'prog.exe');

Callers 2

objdumpMethod · 0.95
runCompilerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected