2020-06-11 13:05:12 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source .travis/common.sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
start_section "OpenFPGA.build" "${GREEN}Building..${NC}"
|
|
|
|
cd ${TRAVIS_BUILD_DIR}
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
|
|
|
|
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
|
|
|
cmake .. -DCMAKE_BUILD_TYPE=debug -DENABLE_VPR_GRAPHICS=off
|
|
|
|
else
|
|
|
|
cmake .. -DCMAKE_BUILD_TYPE=debug
|
|
|
|
fi
|
2020-06-11 19:33:47 -05:00
|
|
|
make -j16
|
|
|
|
|
|
|
|
# Return to upper directory
|
|
|
|
cd ${TRAVIS_BUILD_DIR}
|
|
|
|
|
2020-06-11 13:05:12 -05:00
|
|
|
end_section "OpenFPGA.build"
|