summaryrefslogtreecommitdiff
path: root/tools/gyp
diff options
context:
space:
mode:
authorRefael Ackermann <refack@gmail.com>2019-03-23 17:57:31 -0400
committerRefael Ackermann <refack@gmail.com>2019-03-28 16:39:00 -0400
commitfff922afee6e564dfe7849d88da9abe070974f43 (patch)
treed01e680b6c3974b87f9c8aef27c24f82dc6db5f4 /tools/gyp
parent4507246adc44eb7f3a71977cbd02a31037e914c7 (diff)
downloadandroid-node-v8-fff922afee6e564dfe7849d88da9abe070974f43.tar.gz
android-node-v8-fff922afee6e564dfe7849d88da9abe070974f43.tar.bz2
android-node-v8-fff922afee6e564dfe7849d88da9abe070974f43.zip
deps,build: compute torque_outputs in v8.gyp
PR-URL: https://github.com/nodejs/node/pull/26685 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'tools/gyp')
-rw-r--r--tools/gyp/pylib/gyp/input.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gyp/pylib/gyp/input.py b/tools/gyp/pylib/gyp/input.py
index a046a15cc1..cdf33fd946 100644
--- a/tools/gyp/pylib/gyp/input.py
+++ b/tools/gyp/pylib/gyp/input.py
@@ -881,6 +881,7 @@ def ExpandVariables(input, phase, variables, build_file):
oldwd = os.getcwd() # Python doesn't like os.open('.'): no fchdir.
if build_file_dir: # build_file_dir may be None (see above).
os.chdir(build_file_dir)
+ sys.path.append(os.getcwd())
try:
parsed_contents = shlex.split(contents)
@@ -891,6 +892,7 @@ def ExpandVariables(input, phase, variables, build_file):
"module (%s): %s" % (parsed_contents[0], e))
replacement = str(py_module.DoMain(parsed_contents[1:])).rstrip()
finally:
+ sys.path.pop()
os.chdir(oldwd)
assert replacement != None
elif command_string: