forked from The-OpenROAD-Project/OpenROAD-flow-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.sh
More file actions
executable file
·21 lines (17 loc) · 756 Bytes
/
env.sh
File metadata and controls
executable file
·21 lines (17 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
if [[ "$OSTYPE" == "darwin"* ]]; then
modroot="$(dirname $(perl -e 'use Cwd "abs_path";print abs_path(shift)' "${BASH_SOURCE[0]}"))/tools"
else
modroot="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))/tools"
fi
if [ ! -d "${modroot}" ]; then
echo "Module path does not exist: ${modroot}"
return 1
fi
export OPENROAD=${modroot}/OpenROAD
echo "OPENROAD: ${OPENROAD}"
export PATH=${modroot}/install/OpenROAD/bin:${modroot}/install/yosys/bin:${modroot}/install/LSOracle/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