Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Sat, 1 Aug 2020 10:38:41 +0000 (11:38 +0100)
committerAlberto Garcia <berto@igalia.com>
Sat, 1 Aug 2020 10:38:41 +0000 (11:38 +0100)
commit2c0b716f005e1b151fdf76a466603e7259057b0d
tree4896a240d9fc013d0e4f95abf469de0290d568b6
parentb739147f8f852fc8ceb8bb3f361422abc029ac1a
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