Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Mon, 13 Jul 2020 23:38:23 +0000 (00:38 +0100)
committerAlberto Garcia <berto@igalia.com>
Mon, 13 Jul 2020 23:38:23 +0000 (00:38 +0100)
commit59e0c54c92d3d8c1ae63f36819fadce0b02c1caf
treec3f68db06abc1db3d0e52faf5c6cb5c0ef063e53
parent33d36d78cbda9662dd3fc078a0034ce930ea2c24
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