Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Fri, 23 Oct 2020 10:18:03 +0000 (11:18 +0100)
committerAlberto Garcia <berto@igalia.com>
Fri, 23 Oct 2020 10:18:03 +0000 (11:18 +0100)
commit5296ccdd260e884470b1c0d1d59088ba1dbe05ac
tree16cc8d52be0c1a59274ca0f1fad928805a822fca
parent0642ed0b6030aac165e45542903ea5ddb89bf1af
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