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
|
2020-07-04 18:32:31 -05:00
|
|
|
cmake .. -DENABLE_VPR_GRAPHICS=off
|
2020-06-11 13:05:12 -05:00
|
|
|
else
|
2020-07-04 18:32:31 -05:00
|
|
|
cmake ..
|
2020-06-11 13:05:12 -05:00
|
|
|
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"
|