mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
clang-warns: use clang in path by default.
This commit is contained in:
parent
27e489aab7
commit
9274bfbfe9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user