-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.sh
35 lines (32 loc) · 1.31 KB
/
env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
##===- env.sh - Set up environment to use SCC -----------------------------===##
#
# The SCC Parallelizing Compiler
#
# Copyright (c) 2020 Massachusetts Institute of Technology
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
#
# This script is intended to be sourced in order to set the PATH as well as
# some other environment variables that may aid in using the compiler.
#
##===----------------------------------------------------------------------===##
# Change this line to indicate where you put the build directory.
BUILD_DIR_ROOT="/scratch/${USER}"
if [[ $1 == "--debug" || $1 == "-d" ]]; then
echo "Setting up to use DEBUG build."
DIR="${BUILD_DIR_ROOT}/llvm-swarm-debug"
elif [[ $1 == "--release" || $1 == "-r" ]]; then
echo "Setting up to use RELEASE build."
DIR="${BUILD_DIR_ROOT}/llvm-swarm-release"
else
echo "Setting up to use DEV build."
DIR="${BUILD_DIR_ROOT}/llvm-swarm-build"
fi
export LLVM_DIR="${DIR}/lib/cmake/llvm"
export PATH="${DIR}/bin:${PATH}"
export LIBRARY_PATH="${DIR}/lib:${LIBRARY_PATH}"
export LD_LIBRARY_PATH="${DIR}/lib:${LD_LIBRARY_PATH}"
#export PATH="/data/sanchez/tools/cmake-3.5.2-Linux-x86_64/bin:${PATH}"