summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 17eaf9f..f0ba897 100755
--- a/build.sh
+++ b/build.sh
@@ -47,10 +47,13 @@ if [ "$CC" = "gcc" ]; then
elif [ "$CC" = "clang" ]; then
DEBUG_FLAGS="$DEBUG_FLAGS -no-pie -gdwarf-2 -pipe"
fi
-RELEASE_FLAGS="-O3 -s -DNDEBUG $WARNINGS -std=c11"
+RELEASE_FLAGS="-O3 -s -DNDEBUG $WARNINGS"
+PROFILE_FLAGS="-O3 -g -pg -DNDEBUG $WARNINGS"
if [ "$1" = "release" ]; then
FLAGS="$RELEASE_FLAGS $ADDITIONAL_FLAGS"
+elif [ "$1" = "profile" ]; then
+ FLAGS="$PROFILE_FLAGS $ADDITIONAL_FLAGS"
else
FLAGS="$DEBUG_FLAGS $ADDITIONAL_FLAGS"
fi