summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 10f5929..6fcb507 100755
--- a/build.sh
+++ b/build.sh
@@ -108,11 +108,10 @@ clang src/main.cpp -MJ bin/main.json $WARNING_FLAGS $OPTIMIZATION $ADDITIONAL_FL
-I . \
-lm $(pkg-config --cflags --libs $FFMPEG_LIBS)
-if [[ "$DEBUG" == 1 ]]; then
- pidof gf2 && echo "c ec compiled" > /tmp/control_pipe.dat
+if [[ "$DEBUG" == 1 && "$(pidof gf2)" ]]; then
+ echo "c ec compiled" > /tmp/control_pipe.dat
fi
-
# sed -e '1s/^/[\n/' -e '$s/,$/\n]/' bin/*.json > compile_commands.json
if [[ "$OSTYPE" =~ ^darwin ]]; then