Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Sun, 19 Apr 2020 23:50:19 +0000 (00:50 +0100)
committerAlberto Garcia <berto@igalia.com>
Sun, 19 Apr 2020 23:50:19 +0000 (00:50 +0100)
commitcbe9edad0076f0d45ec380d41fa54c0aee22f617
tree6a7115da228d79eaca8b265bd771b66d4f8d1a46
parent23e45c3bd8fa7db6f30201c94c383819e8016148
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