diff options
| author | Roy Marples <roy@marples.name> | 2012-01-24 11:26:20 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2012-01-24 11:26:20 +0000 |
| commit | efaacbbf18d3fc6a7862f2d8c122d39613fb724d (patch) | |
| tree | 58e12415caa46af4aea513ad7d9e9cfdb59ae587 | |
| parent | 29fe5ed6a4430543b4e7b25b20acc575445eade6 (diff) | |
| download | dhcpcd-efaacbbf18d3fc6a7862f2d8c122d39613fb724d.tar.xz | |
Add and prefer clang to the compiler list.
The compiler version is now shown during configure.
| -rwxr-xr-x | configure | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -168,7 +168,7 @@ echo "MANDIR= $MANDIR" >>$CONFIG_MK if [ -z "$CC" ]; then printf "Looking for compiler ... " for b in $TARGET- ""; do - for cc in gcc pcc icc cc; do + for cc in clang gcc pcc icc cc; do if type $b$cc >/dev/null 2>&1; then CC=$b$cc echo "$CC" @@ -185,6 +185,7 @@ if [ -z "$CC" ]; then else echo "Using compiler $CC" fi +$CC --version | $SED -e '1!d' echo "CC= $CC" >>$CONFIG_MK if [ -n "$CFLAGS" ]; then |
