Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Thu, 18 Mar 2021 15:05:45 +0000 (15:05 +0000)
committerAlberto Garcia <berto@igalia.com>
Thu, 18 Mar 2021 15:05:45 +0000 (15:05 +0000)
commit037c0701261d63cd9424d0688fe0c9935a005d84
treed0808f0389267d3f1d92157cab18339d6c20e8d1
parent1fc9ad2125da7f1a8bada19ec36fc3675fe20883
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