Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Mon, 23 Nov 2020 17:43:07 +0000 (17:43 +0000)
committerAlberto Garcia <berto@igalia.com>
Mon, 23 Nov 2020 17:43:07 +0000 (17:43 +0000)
commite837ce1edccaf0dcbc4f213660e47fc754b28399
tree8a75ff5a9d74010ec8760a64c88de30b02b0fee8
parent9ec601a37ce1899a52bb91b37a1c8ac391629c7c
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