Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Mon, 27 Apr 2020 12:55:16 +0000 (13:55 +0100)
committerAlberto Garcia <berto@igalia.com>
Mon, 27 Apr 2020 12:55:16 +0000 (13:55 +0100)
commit587b391d5013b50ac4c6c7d4795e9d316e6acc05
treefa56df87b5a68fcda9aa8b6c58ad91107fd58cf3
parent6a12784bf3d34392ce912ca386b17405df31a057
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