1 From 4a48c65921b0f05b621aef5b902b6aa54811ad7a Mon Sep 17 00:00:00 2001
2 From: Martin Bark <martin@barkynet.com>
3 Date: Tue, 30 Jun 2015 09:44:33 +0100
4 Subject: [PATCH 3/4] Use a python variable instead of hardcoding Python
6 The nodejs build system uses python in a number of locations. However,
7 there are some locations where it hardcodes 'python' as the Python
8 interpreter. However, this causes problems when we need to use python2
9 instead of just python.
11 This patch fixes that by using the python variable already in place in
12 the nodejs build system.
14 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
15 [Martin: adapt to 0.12.5]
16 Signed-off-by: Martin Bark <martin@barkynet.com>
17 [yann.morin.1998@free.fr: adapt to 4.1.2]
18 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
20 deps/v8/tools/gyp/v8.gyp | 8 ++++----
21 1 file changed, 4 insertions(+), 4 deletions(-)
23 diff --git a/deps/v8/tools/gyp/v8.gyp b/deps/v8/tools/gyp/v8.gyp
24 index c703155..06c0b2b 100644
25 --- a/deps/v8/tools/gyp/v8.gyp
26 +++ b/deps/v8/tools/gyp/v8.gyp
27 @@ -1696,14 +1696,14 @@
28 '<(PRODUCT_DIR)/natives_blob_host.bin',
31 - 'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob_host.bin'
32 + '<(python)', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob_host.bin'
36 '<(PRODUCT_DIR)/natives_blob.bin',
39 - 'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob.bin'
40 + '<(python)', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob.bin'
45 '<(PRODUCT_DIR)/natives_blob.bin',
48 - 'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob.bin'
49 + '<(python)', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob.bin'
54 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
59 '../../tools/js2c.py',
60 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
63 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
68 '../../tools/js2c.py',
69 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
72 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
77 '../../tools/js2c.py',
78 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
81 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc',
86 '../../tools/gen-postmortem-metadata.py',
88 '<@(heapobject_files)'
89 diff --git a/deps/v8/build/toolchain.gypi b/deps/v8/build/toolchain.gypi
90 index c703155..06c0b2b 100644
91 --- a/deps/v8/build/toolchain.gypi
92 +++ b/deps/v8/build/toolchain.gypi
96 'v8_target_arch%': '<(target_arch)',
97 - 'v8_host_byteorder%': '<!(python -c "import sys; print sys.byteorder")',
98 + 'v8_host_byteorder%': '<!(<(python) -c "import sys; print sys.byteorder")',
99 # Native Client builds currently use the V8 ARM JIT and
100 # arm/simulator-arm.cc to defer the significant effort required
101 # for NaCl JIT support. The nacl_target_arch variable provides