Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Fri, 14 Feb 2020 13:55:40 +0000 (13:55 +0000)
committerAlberto Garcia <berto@igalia.com>
Fri, 14 Feb 2020 13:55:40 +0000 (13:55 +0000)
commit73637d77d583771fbe3d590578f7365d15ef5295
tree00f95214e13d6d11c8f4b695a98106886c69b2ce
parent8ad794f8da75d401eb2c61b3291aa28d775d19be
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