]> git.lizzy.rs Git - nothing.git/blobdiff - build-posix.sh
Merge pull request #1238 from tsoding/remove-lt
[nothing.git] / build-posix.sh
index 6653a46dd75dda5ab622985727aa25d9d570a85c..f7a56f0c52b951770fc617ab05f9f987e6e53068 100755 (executable)
@@ -8,11 +8,15 @@ 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
     echo "CC variable is not set up!"
-    return
+    exit 1
 fi
 
 $CC $CFLAGS -o nothing nothing.c $LIBS