]> git.lizzy.rs Git - nothing.git/blobdiff - build-posix.sh
Merge pull request #1255 from tsoding/1253
[nothing.git] / build-posix.sh
index ee876fcd0de1eb0bc8d9fc83a64213cedd9fff3d..f7a56f0c52b951770fc617ab05f9f987e6e53068 100755 (executable)
@@ -8,6 +8,10 @@ if [ ! -z "$NOTHING_CI" ]; then
     CFLAGS="$CFLAGS -Werror"
 fi
 
+if [ ! -z "$NOTHING_PROFILE" ]; then
+    CFLAGS="$CFLAGS -pg"
+fi
+
 LIBS="$LIBS $(pkg-config --libs sdl2) -lm"
 
 if [ ${#CC} -eq "0" ]; then