aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/build.sh
blob: e056ae4a8ee0fee120badb170ab3cae3cc5db2d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

if [ -z "$1" ]; then 
    BUILD_TYPE=Release
else 
    BUILD_TYPE="$1"
fi

cd $(dirname "$0")
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE="$BUILD_TYPE"
make -j2

if [ -z $CI ]; then
    install solc/solc /usr/local/bin && install test/soltest /usr/local/bin
fi