From 6c3ac20477a4bac643088f24df3c042e627fafa9 Mon Sep 17 00:00:00 2001
From: Guillaume Burel <guillaume.burel@stormshield.eu>
Date: Fri, 3 Jan 2020 11:25:54 +0100
Subject: [PATCH] Using native binaries

Upstream-Status: Inappropriate [embedded specific]

Originally added in:
https://git.openembedded.org/meta-openembedded/commit/?id=1c8e4a679ae382f953b2e5c7a4966a4646314f3e
later extended and renamed in:
https://git.openembedded.org/meta-openembedded/commit/?id=feeb172d1a8bf010490d22b8df9448b20d9d2aed

Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
---
 node.gyp                 | 1 +
 tools/v8_gypfiles/v8.gyp | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/node.gyp b/node.gyp
index e8e1d9f9..e60ccc10 100644
--- a/node.gyp
+++ b/node.gyp
@@ -320,6 +320,7 @@
                   'action_name': 'node_mksnapshot',
                   'process_outputs_as_sources': 1,
                   'inputs': [
+                    '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
                     '<(node_mksnapshot_exec)',
                     '<(node_snapshot_main)',
                   ],
diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp
index 42e26cd9..bc721991 100644
--- a/tools/v8_gypfiles/v8.gyp
+++ b/tools/v8_gypfiles/v8.gyp
@@ -68,6 +68,7 @@
         {
           'action_name': 'run_torque_action',
           'inputs': [  # Order matters.
+            '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
             '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)torque<(EXECUTABLE_SUFFIX)',
             '<@(torque_files)',
           ],
@@ -99,6 +100,7 @@
             '<@(torque_outputs_inc)',
           ],
           'action': [
+            '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
             '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)torque<(EXECUTABLE_SUFFIX)',
             '-o', '<(SHARED_INTERMEDIATE_DIR)/torque-generated',
             '-v8-root', '<(V8_ROOT)',
@@ -211,6 +213,7 @@
         {
           'action_name': 'generate_bytecode_builtins_list_action',
           'inputs': [
+            '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
             '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)bytecode_builtins_list_generator<(EXECUTABLE_SUFFIX)',
           ],
           'outputs': [
@@ -400,6 +403,7 @@
             ],
           },
           'inputs': [
+            '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
             '<(mksnapshot_exec)',
           ],
           'outputs': [
@@ -1539,6 +1543,7 @@
         {
           'action_name': 'run_gen-regexp-special-case_action',
           'inputs': [
+            '<(PRODUCT_DIR)/v8-qemu-wrapper.sh',
             '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen-regexp-special-case<(EXECUTABLE_SUFFIX)',
           ],
           'outputs': [
-- 
2.34.1

