summaryrefslogtreecommitdiff
blob: d91ea8a4c1b19c841138b373453d9f237572fef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
diff --git a/v8/gypfiles/detect_v8_host_arch.py b/v8/gypfiles/detect_v8_host_arch.py
index 89e8286..cc61946 100644
--- a/v8/gypfiles/detect_v8_host_arch.py
+++ b/v8/gypfiles/detect_v8_host_arch.py
@@ -28,13 +28,15 @@
 
 """Outputs host CPU architecture in format recognized by gyp."""
 
+from __future__ import print_function
+
 import platform
 import re
 import sys
 
 
 def main():
-  print DoMain([])
+  print(DoMain([]))
   return 0
 
 def DoMain(_):
diff --git a/v8/gypfiles/toolchain.gypi b/v8/gypfiles/toolchain.gypi
index 95eb1d9..1ec652a 100644
--- a/v8/gypfiles/toolchain.gypi
+++ b/v8/gypfiles/toolchain.gypi
@@ -40,7 +40,7 @@
     'has_valgrind%': 0,
     'coverage%': 0,
     'v8_target_arch%': '<(target_arch)',
-    'v8_host_byteorder%': '<!(python -c "import sys; print sys.byteorder")',
+    'v8_host_byteorder%': '<!(python -c "from __future__ import print_function; import sys; print(sys.byteorder)")',
     'force_dynamic_crt%': 0,
 
     # Setting 'v8_can_use_vfp32dregs' to 'true' will cause V8 to use the VFP