Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Fri, 20 Nov 2020 14:24:07 +0000 (14:24 +0000)
committerAlberto Garcia <berto@igalia.com>
Fri, 20 Nov 2020 14:24:07 +0000 (14:24 +0000)
commit3ff08d0919163e819533caa94d01f583e94167d2
tree647f77c2ac90d1cb9960286981e3ea1e1cfc07d5
parente56c9a77c54ff4cceba50f243d16eaef44adbecd
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