clang-warns: use clang in path by default.

This commit is contained in:
Emil Mikulic 2020-07-01 19:41:46 +10:00
parent 27e489aab7
commit 9274bfbfe9
1 changed files with 5 additions and 6 deletions

View File

@ -1,13 +1,12 @@
#!/bin/sh
#!/bin/bash
#
# Build with clang with all warnings.
#
TARGET=$(dirname $0)/../darkhttpd.c
# Adjust to suit:
LLVM=$HOME/llvm
$LLVM/install/bin/clang -Weverything -O \
if [[ -z "$CLANG" ]]; then
CLANG="$(which clang)"
fi
"$CLANG" -Weverything -O \
-Wno-unreachable-code -Wno-padded -Wno-disabled-macro-expansion \
-Wno-reserved-id-macro \
-DDEBUG $TARGET