Use CMAKE_CXX_LIBRARY_ARCHITECTURE to detect x86
authorAlberto Garcia <berto@igalia.com>
Thu, 12 Mar 2020 19:35:21 +0000 (19:35 +0000)
committerAlberto Garcia <berto@igalia.com>
Thu, 12 Mar 2020 19:35:21 +0000 (19:35 +0000)
commit74b4d0ba76d6d6b7718ed707c53b5616dcc13407
tree8f39244c644d169600257b4a99346397c9f4f21f
parent624e7f1d437bbf6ce9dcfda5dd90e9503184c896
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