Commit 06da6943 authored by David Conrad's avatar David Conrad

Add clang to detected compilers

Originally committed as revision 20350 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b74d42ee
...@@ -1590,6 +1590,11 @@ elif $cc -version 2>/dev/null | grep -q TMS470; then ...@@ -1590,6 +1590,11 @@ elif $cc -version 2>/dev/null | grep -q TMS470; then
esac esac
done done
} }
elif $cc -v 2>&1 | grep -q clang; then
cc_type=clang
cc_version=__VERSION__
CC_DEPFLAGS='-MMD'
AS_DEPFLAGS='-MMD'
fi fi
test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc" test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"
...@@ -1615,6 +1620,10 @@ if test -n "$sysroot"; then ...@@ -1615,6 +1620,10 @@ if test -n "$sysroot"; then
add_cppflags -I"$sysinclude" add_cppflags -I"$sysinclude"
add_ldflags --sysroot="$sysroot" add_ldflags --sysroot="$sysroot"
;; ;;
clang)
add_cppflags -isysroot="$sysroot"
add_ldflags -isysroot="$sysroot"
;;
esac esac
fi fi
...@@ -2464,6 +2473,8 @@ elif enabled ccc; then ...@@ -2464,6 +2473,8 @@ elif enabled ccc; then
add_cflags -msg_disable unreachcode add_cflags -msg_disable unreachcode
elif enabled gcc; then elif enabled gcc; then
check_cflags -fno-tree-vectorize check_cflags -fno-tree-vectorize
elif enabled clang; then
check_cflags -Qunused-arguments
fi fi
if enabled gprof; then if enabled gprof; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment