#! /bin/bash

set -e
set -x

sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt update
sudo apt install -y gcc-8 g++-8

export CC=gcc-8
export CXX=g++-8

mkdir build && cd build

cmake .. -DSLANG_INCLUDE_TESTS=OFF

make

install -D bin/driver $PREFIX/bin/slang-driver
install -D bin/rewriter $PREFIX/bin/slang-rewriter

#! /bin/bash

set -e
set -x

sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt update
sudo apt install -y gcc-8 g++-8

export CC=gcc-8
export CXX=g++-8

mkdir build && cd build

cmake .. -DSLANG_INCLUDE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release

make

install -D bin/driver $PREFIX/bin/slang-driver
install -D bin/rewriter $PREFIX/bin/slang-rewriter

Build slang in release mode
Build slang in release mode

As suggested by the author in:
https://github.com/SymbiFlow/sv-tests/issues/336

Signed-off-by: Tomasz Gorochowik <265c7c25eca9aa9127910457b0aea7e793d329f1@antmicro.com>
