From: Daniel Díaz Date: Thu, 9 Aug 2018 17:14:54 +0000 (-0500) Subject: multilib_header: recognize BPF as a target X-Git-Tag: uninative-2.3~743 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=70b41b3c335a80b4ac243f468f22331d261299db;p=openembedded-core.git multilib_header: recognize BPF as a target When building with `clang -target bpf` using the multilib_header, a recursion was unavoidable because bits/wordsize.h would #include itself, still lacking a definition for __MHWORDSIZE or __WORDSIZE. Signed-off-by: Daniel Díaz Signed-off-by: Richard Purdie --- diff --git a/scripts/multilib_header_wrapper.h b/scripts/multilib_header_wrapper.h index f516673b63..9660225fdd 100644 --- a/scripts/multilib_header_wrapper.h +++ b/scripts/multilib_header_wrapper.h @@ -22,7 +22,9 @@ */ -#if defined (__arm__) +#if defined (__bpf__) +#define __MHWORDSIZE 64 +#elif defined (__arm__) #define __MHWORDSIZE 32 #elif defined (__aarch64__) && defined ( __LP64__) #define __MHWORDSIZE 64