Watch
1
0
Fork
You've already forked cli-flag-collection
0
mirror of synced 2026-11-03 23:07:18 +00:00
cli-flag-collection/compile-cfc.sh
2026-09-11 10:34:44 +02:00

12 lines
452 B
Shell
Executable file

#!/bin/bash
if [ "${1,,}" == "static" ]; then
echo "Release + Static"
time g++ -Wall -Werror -O3 -flto -fomit-frame-pointer -static -std=c++23 cli-flag-collection.cpp -o cfc-cli-static-out
elif [ "${1,,}" == "release" ]; then
echo "Release"
time g++ -Wall -Werror -O3 -flto -fomit-frame-pointer -std=c++23 cli-flag-collection.cpp -o cfc-cli-release-out
else
echo "Dynamic-dev"
time g++ -Wall -std=c++23 cli-flag-collection.cpp -o cfc-cli-out
fi