Disable aliasing when building with Clang
When building with new versions of Clang we encounter some issues. Work around them by adding -fno-strict-aliasing when we detect Clang. https://code.google.com/p/webm/issues/detail?id=603 Change-Id: I8e945a18a7215bcc627e7a1ee110078413259cc7
This commit is contained in:
parent
080150d96f
commit
8b47e1cfe1
7
configure
vendored
7
configure
vendored
@ -608,7 +608,12 @@ process_toolchain() {
|
|||||||
check_add_cflags -Wuninitialized
|
check_add_cflags -Wuninitialized
|
||||||
check_add_cflags -Wunused-variable
|
check_add_cflags -Wunused-variable
|
||||||
case ${CC} in
|
case ${CC} in
|
||||||
*clang*) ;;
|
*clang*)
|
||||||
|
# libvpx and/or clang have issues with aliasing:
|
||||||
|
# https://code.google.com/p/webm/issues/detail?id=603
|
||||||
|
# work around them until they are fixed
|
||||||
|
check_add_cflags -fno-strict-aliasing
|
||||||
|
;;
|
||||||
*) check_add_cflags -Wunused-but-set-variable ;;
|
*) check_add_cflags -Wunused-but-set-variable ;;
|
||||||
esac
|
esac
|
||||||
enabled extra_warnings || check_add_cflags -Wno-unused-function
|
enabled extra_warnings || check_add_cflags -Wno-unused-function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user