| 56 | } |
| 57 | |
| 58 | private async getLeanPrefix(compiler: string, execOptions: ExecutionOptionsWithEnv): Promise<string | null> { |
| 59 | const prefixResult = await this.exec(compiler, ['--print-prefix'], execOptions); |
| 60 | const prefix = prefixResult.stdout.trim(); |
| 61 | if (prefixResult.code === 0 && prefix) { |
| 62 | return prefix; |
| 63 | } |
| 64 | |
| 65 | return null; |
| 66 | } |
| 67 | |
| 68 | private async getLeancPath(compiler: string, execOptions: ExecutionOptionsWithEnv): Promise<string> { |
| 69 | const prefix = await this.getLeanPrefix(compiler, execOptions); |