Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Mon, 17 Feb 2020 10:02:17 +0000 (10:02 +0000)
committerAlberto Garcia <berto@igalia.com>
Mon, 17 Feb 2020 10:02:17 +0000 (10:02 +0000)
commit7319bc0f26dae68d72134850754491d4ddab7e5d
tree95cd3b99c643811feb18374e5c2ad2e069b5333b
parent15115cefe26dc74dfac1d88a9f0f42e0ad2d9b9d
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