2020-07-01 12:41:46 +03:00
|
|
|
#!/bin/bash
|
2011-01-15 12:54:15 +03:00
|
|
|
#
|
2013-04-28 15:16:40 +04:00
|
|
|
# Build with clang with all warnings.
|
2011-01-15 12:54:15 +03:00
|
|
|
#
|
2013-04-28 15:16:40 +04:00
|
|
|
TARGET=$(dirname $0)/../darkhttpd.c
|
2020-07-01 12:41:46 +03:00
|
|
|
if [[ -z "$CLANG" ]]; then
|
|
|
|
CLANG="$(which clang)"
|
|
|
|
fi
|
|
|
|
"$CLANG" -Weverything -O \
|
2013-04-28 15:24:33 +04:00
|
|
|
-Wno-unreachable-code -Wno-padded -Wno-disabled-macro-expansion \
|
2016-01-13 16:57:42 +03:00
|
|
|
-Wno-reserved-id-macro \
|
2015-01-01 10:32:01 +03:00
|
|
|
-DDEBUG $TARGET
|
2011-01-15 12:54:15 +03:00
|
|
|
rm -f a.out
|