forked from ashish-gehani/OCCAM
-
Notifications
You must be signed in to change notification settings - Fork 10
/
bootstrap.sh
35 lines (29 loc) · 934 Bytes
/
bootstrap.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
#!/usr/bin/env bash
# Install GLLVM / OCCAM dependencies
sudo apt-get update
sudo apt-get install -y clang-10 clang-format-10 cmake git golang-go
sudo apt-get install -y libboost-dev libgmp-dev libprotobuf-dev llvm-10
sudo apt-get install -y protobuf-compiler python3-pip python-protobuf
sudo apt-get install -y software-properties-common wget
pip3 install setuptools --upgrade
pip3 install wheel
pip3 install protobuf
pip3 install lit
# Download OCCAM
git clone --recurse-submodules https://github.com/SRI-CSL/OCCAM.git occam
# Set environment variables
cp occam/vagrants/18.04/basic/bash_profile $HOME/.bash_profile
. .bash_profile
# Install GLLVM
mkdir "$GOPATH"
cd "$GOPATH"
go get github.com/SRI-CSL/gllvm/cmd/...
# Build OCCAM
cd $OCCAM_HOME
make -j16
make install
make test
# Get OCCAM benchmarks (and depepndencies)
cd $HOME
git clone https://github.com/SRI-CSL/OCCAM-Benchmarks.git runbench
. runbench/dependencies.sh