environment: refactor interfaces, splitting
This commit is contained in:
@@ -5,39 +5,44 @@ export const SYSROOT_PREFIX = "/usr/sw/standard-830-6b-test";
|
|||||||
export const projectRoot = path.join(__dirname, "..", "..", "..");
|
export const projectRoot = path.join(__dirname, "..", "..", "..");
|
||||||
export const local = path.resolve(projectRoot, "local");
|
export const local = path.resolve(projectRoot, "local");
|
||||||
|
|
||||||
|
export interface HaveSPEC2017 {
|
||||||
/**
|
|
||||||
* User-specific environment on Sw6B machine.
|
|
||||||
*/
|
|
||||||
export interface Sw6BEnvironment {
|
|
||||||
/**
|
|
||||||
* Home directory
|
|
||||||
*/
|
|
||||||
home: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Source to llvm-projdct
|
|
||||||
*/
|
|
||||||
llvmSrc?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Private directory, writable, to put llvm installation.
|
|
||||||
*/
|
|
||||||
privateLLVMInstall?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Shared llvm installation directory, readonly for all users.
|
|
||||||
*/
|
|
||||||
sharedLLVMInstall?: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Path to default spec2017 installation.
|
* Path to default spec2017 installation.
|
||||||
*/
|
*/
|
||||||
spec2017: string;
|
spec2017: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface HaveLLVMSource {
|
||||||
|
/**
|
||||||
|
* Source to llvm-projdct
|
||||||
|
*/
|
||||||
|
llvmSrc?: string;
|
||||||
|
}
|
||||||
|
|
||||||
export const lycEnv: Sw6BEnvironment = (() => {
|
export interface HaveLLVMInstall {
|
||||||
|
/**
|
||||||
|
* Private directory, writable, to put llvm installation.
|
||||||
|
*/
|
||||||
|
privateLLVMInstall: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Shared llvm installation directory, readonly for all users.
|
||||||
|
*/
|
||||||
|
sharedLLVMInstall: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User-specific environment on Sw6B machine.
|
||||||
|
*/
|
||||||
|
export interface HaveHome {
|
||||||
|
/**
|
||||||
|
* Home directory
|
||||||
|
*/
|
||||||
|
home: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const lycEnv = (() => {
|
||||||
const home = path.resolve("/", "home", "lyc");
|
const home = path.resolve("/", "home", "lyc");
|
||||||
const swAutoVec = path.resolve(home, "workspace", "sw-autovec");
|
const swAutoVec = path.resolve(home, "workspace", "sw-autovec");
|
||||||
const llvmSrc = path.resolve(swAutoVec, "swllvm-13.0.0-vect0919");
|
const llvmSrc = path.resolve(swAutoVec, "swllvm-13.0.0-vect0919");
|
||||||
|
|||||||
Reference in New Issue
Block a user