From b973b512457a755f8b6b704e6bd99ed216686e88 Mon Sep 17 00:00:00 2001 From: Yingchi Long Date: Sat, 22 Jun 2024 23:05:26 +0800 Subject: [PATCH] enviornment/llvm-prefix: add Toolchain interface --- src/environment/llvm-prefix.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/environment/llvm-prefix.ts b/src/environment/llvm-prefix.ts index 536746a..1af4b92 100644 --- a/src/environment/llvm-prefix.ts +++ b/src/environment/llvm-prefix.ts @@ -1,5 +1,22 @@ import path from "path"; +export interface Toolchain { + /** + * C compiler. + */ + CC: string; + + /** + * C++ compiler. + */ + CXX: string; + + /** + * Fortran compiler. + */ + FC: string; +}; + export function llvmToolchain(prefix: string) { const bin = path.resolve(prefix, "bin"); return {