Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Mon, 21 Dec 2020 13:01:31 +0000 (13:01 +0000)
committerAlberto Garcia <berto@igalia.com>
Mon, 21 Dec 2020 13:01:31 +0000 (13:01 +0000)
commitca7ddd1db992e97a565a3046403f58d06b63bb2a
treed81f7e316b55dee612fe4440b69205a35965e0cf
parent683f82ff82d5e396cbfccd40d38666cc8d136c9a
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