]> git.lizzy.rs Git - nothing.git/commitdiff
(#1180) Warn if $CC is not set up
authorgooddoog <gooddoog@student.su>
Thu, 5 Dec 2019 17:40:01 +0000 (20:40 +0300)
committergooddoog <gooddoog@student.su>
Thu, 5 Dec 2019 17:42:02 +0000 (20:42 +0300)
build-posix.sh

index b068ea491454f454b6040a9e636a6a8db558dc05..6653a46dd75dda5ab622985727aa25d9d570a85c 100755 (executable)
@@ -10,4 +10,9 @@ fi
 
 LIBS="$LIBS $(pkg-config --libs sdl2) -lm"
 
+if [ ${#CC} -eq "0" ]; then
+    echo "CC variable is not set up!"
+    return
+fi
+
 $CC $CFLAGS -o nothing nothing.c $LIBS