diff options
author | Daniel Díaz <daniel.diaz@linaro.org> | 2018-08-09 12:14:54 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-14 11:36:22 +0100 |
commit | 70b41b3c335a80b4ac243f468f22331d261299db (patch) | |
tree | 333cda6f6b5fdfbf62a87563105212fc54a071ab /scripts/multilib_header_wrapper.h | |
parent | 90ad502bf8faa233e25cf297c1eeefcb0367aea3 (diff) | |
download | openembedded-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.h | 4 |
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 |