Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Thu, 7 May 2020 10:47:16 +0000 (11:47 +0100)
committerAlberto Garcia <berto@igalia.com>
Thu, 7 May 2020 10:47:16 +0000 (11:47 +0100)
commitca9b1eb78eb45410ceef4b7fa8fef4853f1a33fe
treec7df19a58083d85009a21b4b4ba4638ecb7b4a2c
parent791a1dc63fe00625accfe801439c53b1c452032c
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