Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Fri, 26 Mar 2021 10:56:39 +0000 (10:56 +0000)
committerAlberto Garcia <berto@igalia.com>
Fri, 26 Mar 2021 10:56:39 +0000 (10:56 +0000)
commit3ab8eda950d6db2245abca4244a2a49c6636b240
tree9f6919aec5dff8096872260612764b1d0cec4324
parent0c7e6be91b27dc803b44a37904b8aa1bd8483be3
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