Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Mon, 16 Mar 2020 14:25:01 +0000 (14:25 +0000)
committerAlberto Garcia <berto@igalia.com>
Mon, 16 Mar 2020 14:25:01 +0000 (14:25 +0000)
commit76afb5370d2cabe2623d2e585e6b676f2142587a
treebe4eac46584e9f0b086b87a8ab09e6ea9a2c20f7
parent6f44332189be62f8712175307f26ccc0b9b99b51
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