summaryrefslogtreecommitdiffstats
path: root/scripts/multilib_header_wrapper.h
diff options
context:
space:
mode:
authorDaniel Díaz <daniel.diaz@linaro.org>2018-08-09 12:14:54 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-14 11:36:22 +0100
commit70b41b3c335a80b4ac243f468f22331d261299db (patch)
tree333cda6f6b5fdfbf62a87563105212fc54a071ab /scripts/multilib_header_wrapper.h
parent90ad502bf8faa233e25cf297c1eeefcb0367aea3 (diff)
downloadopenembedded-core-contrib-70b41b3c335a80b4ac243f468f22331d261299db.tar.gz
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 <daniel.diaz@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/multilib_header_wrapper.h')
-rw-r--r--scripts/multilib_header_wrapper.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/multilib_header_wrapper.h b/scripts/multilib_header_wrapper.h
index f516673b63a..9660225fdd7 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