Originally committed as revision 20350 to svn://svn.ffmpeg.org/ffmpeg/trunk
esac
done
}
+elif $cc -v 2>&1 | grep -q clang; then
+ cc_type=clang
+ cc_version=__VERSION__
+ CC_DEPFLAGS='-MMD'
+ AS_DEPFLAGS='-MMD'
fi
test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"
add_cppflags -I"$sysinclude"
add_ldflags --sysroot="$sysroot"
;;
+ clang)
+ add_cppflags -isysroot="$sysroot"
+ add_ldflags -isysroot="$sysroot"
+ ;;
esac
fi
add_cflags -msg_disable unreachcode
elif enabled gcc; then
check_cflags -fno-tree-vectorize
+elif enabled clang; then
+ check_cflags -Qunused-arguments
fi
if enabled gprof; then