summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-12-27 21:54:48 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-12-28 21:24:25 +0100
commitbd3539b222e0c9bcb97fe35b4fdf79cfceade179 (patch)
tree8c2c82bbf2d914ffc1a1c413c188cd8291c089de /autogen.sh
parent08c51903fb895e836866b8e7a09f0523b72b9aaf (diff)
autogen: add shortcut for building with clang
For a while I have been cleaning up warnings when building with clang. There are currently only two sources of warnings left: Wcast-align and Wgnu. I am not convinced that fixing up those up is feasible so I run with them disabled to spot regressions. E.g. clang is a bit more strict wrt to unused variables with the cleanup attribute and I have fixed a number of those since. Like the other options in autogen.sh I have a shortcut for clang as well. I use 'l' for llvm.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index e6289b3bcb..91df10a26b 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -62,6 +62,9 @@ elif [ "x$1" = "xg" ]; then
elif [ "x$1" = "xa" ]; then
./configure CFLAGS='-g -O0 -Wsuggest-attribute=pure -Wsuggest-attribute=const -ftrapv' --enable-kdbus $args
make clean
+elif [ "x$1" = "xl" ]; then
+ ./configure CC=clang CFLAGS='-g -O0 -ftrapv -Wno-cast-align -Wno-gnu' --enable-kdbus $args
+ make clean
else
echo
echo "----------------------------------------------------------------"