Files
renderdoc/scripts/travis/linux_compile.sh
T
2017-05-09 16:37:06 +01:00

24 lines
352 B
Bash

#!/bin/sh
# ignore "error" codes in the env script below
set +e
. /opt/qt56/bin/qt56-env.sh
set -e
# Switch to the gcc version we want
if [ $CC == "gcc" ]; then
export CC=gcc-6;
export CXX=g++-6;
fi
mkdir build
cd build
if [[ "$RELEASE_BUILD" == "1" ]]; then
cmake -DCMAKE_BUILD_TYPE=Release ..
else
cmake -DCMAKE_BUILD_TYPE=Debug ..
fi
make