2022-11-17 20:16:47 -06:00
|
|
|
#Creates a release build that focuses on high runtime performance.
|
|
|
|
#C++
|
|
|
|
printf "Running program...\n\n\n"
|
2022-11-23 22:51:30 -06:00
|
|
|
output=$(dpkg -l | grep libx11-dev)
|
|
|
|
if [[ -z $output ]]
|
|
|
|
then
|
|
|
|
sudo apt install libx11-dev libpulse-dev mesa-common-dev libpng-dev
|
|
|
|
fi
|
2022-11-17 20:16:47 -06:00
|
|
|
if g++ $(find . -type f -name "*.cpp" -not -path "./test/*") ${CUSTOM_PARAMS} -O3 -s -DNDEBUG -o ${PROJECT_NAME}; then
|
|
|
|
./${PROJECT_NAME} "$@"
|
|
|
|
fi
|
|
|
|
printf "\n\n"
|