forked from The-OpenROAD-Project/OpenROAD-flow-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.sh
executable file
·25 lines (20 loc) · 839 Bytes
/
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
if [[ "$OSTYPE" == "darwin"* ]]; then
DIR="$(dirname $(perl -e 'use Cwd "abs_path";print abs_path(shift)' "${BASH_SOURCE[0]}"))"
else
DIR="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
fi
if [ -f /opt/rh/rh-python38/enable ]; then
source /opt/rh/rh-python38/enable
fi
export OPENROAD=${DIR}/tools/OpenROAD
echo "OPENROAD: ${OPENROAD}"
export PATH=${DIR}/tools/install/OpenROAD/bin:$PATH
export PATH=${DIR}/tools/install/yosys/bin:$PATH
export PATH=${DIR}/tools/install/LSOracle/bin:$PATH
export PATH=${DIR}/dependencies/bin:$PATH
if [[ "$OSTYPE" == "darwin"* ]]; then
export PATH="/Applications/KLayout/klayout.app/Contents/MacOS:$PATH"
export PATH="$(brew --prefix bison)/bin:$(brew --prefix flex)/bin:$(brew --prefix tcl-tk)/bin:$PATH"
export CMAKE_PREFIX_PATH="$(brew --prefix or-tools)"
fi
export FLOW_HOME=$DIR/flow