treewide: refactor some constants to environment.ts

This commit is contained in:
2024-06-16 17:51:46 +08:00
parent 9c45a03a59
commit bf628dc609
3 changed files with 108 additions and 57 deletions

22
environment.ts Normal file
View File

@@ -0,0 +1,22 @@
import path from "path"
export const HOME = path.join("/home", "lyc")
export const SW_AUTOVEC = path.join(HOME, "workspace", "sw-autovec")
export const LLVM_SRC = path.join(SW_AUTOVEC, "swllvm-13.0.0-vect0919")
export const LLVM_INSTALL = path.join(LLVM_SRC, "local", "installed")
/// Default toolchain version used in SPEC2017
export const PREFIX = path.join(LLVM_SRC, "85e4fed0c9e4cd4ab8bce89f307127ccbad31294")
export const PREFIXBIN = path.join(PREFIX, "bin")
export const LLVM_EXTRACT = path.join(PREFIXBIN, "llvm-extract")
export const SPEC = path.join(SW_AUTOVEC, "spec2017")
export const CXX = path.join(PREFIXBIN, "clang++")
export const CC = path.join(PREFIXBIN, "clang")
export const FLANG = path.join(PREFIXBIN, "flang")
export const SYSROOT_PREFIX = "/usr/sw/standard-830-6b-test"