"README.rst" did not exist on "4dc6ed53c1a8431a818d2f13e60f340d60f80127"
meson: don't use compiler.has_header
Meson's compiler.has_header is completely useless, it only checks that a header exists, not whether it's usable. This creates problems if a header contains a conditional #error declaration, like so: > #if __x86_64__ > # error "Doesn't work with x86_64!" > #endif Compiler.has_header will return true in this case, even when compiling for x86_64. This is useless. Instead, we'll do a compile check so that any #error declarations will be treated as errors, and compilation will work. Fixes compilation on x32 architecture. Gentoo Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=649746 meson bug: https://github.com/mesonbuild/meson/issues/2246 Signed-off-by:Dylan Baker <dylan.c.baker@intel.com> Acked-by:
Matt Turner <mattst88@gmail.com> Reviewed-by:
Eric Engestrom <eric.engestrom@imgtec.com> (cherry picked from commit 8247a308) [Juan A. Suarez: resolve trivial conflicts] Signed-off-by:
Juan A. Suarez Romero <jasuarez@igalia.com> Conflicts: meson.build
Loading
Please register or sign in to comment