Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Wed, 22 Jan 2020 12:44:09 +0000 (12:44 +0000)
committerAlberto Garcia <berto@igalia.com>
Wed, 22 Jan 2020 12:44:09 +0000 (12:44 +0000)
commit44258b4ec0f5f137fdd0bf7429fad4e60773d521
tree4273ac97c9b226094a5a7c7fff66b2c78230aa9f
parentfb0dbce439f35fe947e515918cd396034365e745
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