diff options
| author | Khem Raj <raj.khem@gmail.com> | 2020-01-23 14:12:40 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-01-23 14:16:25 -0800 |
| commit | 354bedc9aba9a79936b2ace8e39ab07352ad2d73 (patch) | |
| tree | e8803ba3b5d023f771c37d0a9dc46daaf0936d78 /meta-oe | |
| parent | 50d550aa4e99a8a62db275e4e85626e6b73c3c51 (diff) | |
| download | meta-openembedded-354bedc9aba9a79936b2ace8e39ab07352ad2d73.tar.gz | |
nodejs: Fix build on big-endian targets
Fixes
../deps/v8/src/runtime/runtime-utils.h:129:11: error: base operand of '->' has non-pointer type 'v8::internal::Object'
129 | return y->ptr() | (static_cast<ObjectPair>(x->ptr()) << 32);
| ^~
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Martin Jansa <Martin.Jansa@gmail.com>
Cc: Guillaume Burel <guillaume.burel@stormshield.eu>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs/big-endian.patch | 18 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs_12.14.1.bb | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/big-endian.patch b/meta-oe/recipes-devtools/nodejs/nodejs/big-endian.patch new file mode 100644 index 0000000000..529381842f --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs/big-endian.patch | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | |||
| 2 | https://github.com/v8/v8/commit/878ccb33bd3cf0e6dc018ff8d15843f585ac07be | ||
| 3 | |||
| 4 | did some automated cleanups but it missed big-endian code. | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- a/deps/v8/src/runtime/runtime-utils.h | ||
| 9 | +++ b/deps/v8/src/runtime/runtime-utils.h | ||
| 10 | @@ -126,7 +126,7 @@ static inline ObjectPair MakePair(Object | ||
| 11 | #if defined(V8_TARGET_LITTLE_ENDIAN) | ||
| 12 | return x.ptr() | (static_cast<ObjectPair>(y.ptr()) << 32); | ||
| 13 | #elif defined(V8_TARGET_BIG_ENDIAN) | ||
| 14 | - return y->ptr() | (static_cast<ObjectPair>(x->ptr()) << 32); | ||
| 15 | + return y.ptr() | (static_cast<ObjectPair>(x.ptr()) << 32); | ||
| 16 | #else | ||
| 17 | #error Unknown endianness | ||
| 18 | #endif | ||
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_12.14.1.bb b/meta-oe/recipes-devtools/nodejs/nodejs_12.14.1.bb index e9ec500e51..6eb52c209a 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs_12.14.1.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs_12.14.1.bb | |||
| @@ -19,6 +19,7 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ | |||
| 19 | file://0001-Disable-running-gyp-files-for-bundled-deps.patch \ | 19 | file://0001-Disable-running-gyp-files-for-bundled-deps.patch \ |
| 20 | file://0003-Install-both-binaries-and-use-libdir.patch \ | 20 | file://0003-Install-both-binaries-and-use-libdir.patch \ |
| 21 | file://0004-v8-don-t-override-ARM-CFLAGS.patch \ | 21 | file://0004-v8-don-t-override-ARM-CFLAGS.patch \ |
| 22 | file://big-endian.patch \ | ||
| 22 | " | 23 | " |
| 23 | SRC_URI_append_class-target = " \ | 24 | SRC_URI_append_class-target = " \ |
| 24 | file://0002-Using-native-binaries.patch \ | 25 | file://0002-Using-native-binaries.patch \ |
