]> code.ossystems Code Review - openembedded-core.git/commitdiff
multilib_header: recognize BPF as a target
authorDaniel Díaz <daniel.diaz@linaro.org>
Thu, 9 Aug 2018 17:14:54 +0000 (12:14 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Aug 2018 10:36:22 +0000 (11:36 +0100)
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 <daniel.diaz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/multilib_header_wrapper.h

index f516673b63a55843743efa52c1d1d5a10c744ba2..9660225fdd72bedd6ca8b1c1ebb089d2b70e856a 100644 (file)
@@ -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