Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Fri, 10 Jul 2020 11:26:49 +0000 (12:26 +0100)
committerAlberto Garcia <berto@igalia.com>
Fri, 10 Jul 2020 11:26:49 +0000 (12:26 +0100)
commit3ac809ca483d7cd2dfcbb2fcdabc585ff8e529ee
tree1b9497b64d0e15e2ecfffe50cf35fff11a31ae62
parent293d1406a772dea8b75ab563274ae7a36a10f9df
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