diff options
-rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs/mips-warnings.patch | 19 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs_12.14.1.bb | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/mips-warnings.patch b/meta-oe/recipes-devtools/nodejs/nodejs/mips-warnings.patch new file mode 100644 index 0000000000..1a773f23d8 --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs/mips-warnings.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Add explicit static cast to fix narrowing warning | ||
2 | |||
3 | Fixes | ||
4 | deps/v8/src/codegen/mips/assembler-mips.cc:3556:44: error: non-constant-expression cannot be narrowed from type 'int' to 'size_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- a/deps/v8/src/codegen/mips/assembler-mips.cc | ||
10 | +++ b/deps/v8/src/codegen/mips/assembler-mips.cc | ||
11 | @@ -3553,7 +3553,7 @@ void Assembler::GrowBuffer() { | ||
12 | reloc_info_writer.last_pc() + pc_delta); | ||
13 | |||
14 | // Relocate runtime entries. | ||
15 | - Vector<byte> instructions{buffer_start_, pc_offset()}; | ||
16 | + Vector<byte> instructions{buffer_start_, static_cast<size_t>(pc_offset())}; | ||
17 | Vector<const byte> reloc_info{reloc_info_writer.pos(), reloc_size}; | ||
18 | for (RelocIterator it(instructions, reloc_info, 0); !it.done(); it.next()) { | ||
19 | RelocInfo::Mode rmode = it.rinfo()->rmode(); | ||
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 28b4136a5a..d468fb3ffa 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs_12.14.1.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs_12.14.1.bb | |||
@@ -22,6 +22,7 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ | |||
22 | file://big-endian.patch \ | 22 | file://big-endian.patch \ |
23 | file://0001-build-allow-passing-multiple-libs-to-pkg_config.patch \ | 23 | file://0001-build-allow-passing-multiple-libs-to-pkg_config.patch \ |
24 | file://0002-build-allow-use-of-system-installed-brotli.patch \ | 24 | file://0002-build-allow-use-of-system-installed-brotli.patch \ |
25 | file://mips-warnings.patch \ | ||
25 | " | 26 | " |
26 | SRC_URI_append_class-target = " \ | 27 | SRC_URI_append_class-target = " \ |
27 | file://0002-Using-native-binaries.patch \ | 28 | file://0002-Using-native-binaries.patch \ |