Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Mon, 21 Sep 2020 13:34:07 +0000 (14:34 +0100)
committerAlberto Garcia <berto@igalia.com>
Mon, 21 Sep 2020 13:34:07 +0000 (14:34 +0100)
commit716f287eedfffcc8ad55b192de3b3188d5d3f420
tree68fc51b053d74c085f05bd4934e70b497da3bc46
parent6cabd9aea9eabc3715b20cc1e1c8175233ced519
Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86

Bug: https://bugs.webkit.org/show_bug.cgi?id=172799

When building for x86 in a x86_64 host (e.g. with pbuilder) CMake
will set CMAKE_SYSTEM_PROCESSOR to x86_64, and WebKit will assume
that it's a 64-bit build. Let's use the C++ compiler architecture as
a temporary solution to detect x86 correctly.
===================================================================

Gbp-Pq: Name fix-ftbfs-x86.patch
CMakeLists.txt