提交 f95b29b7 编写于 作者: A Adam Barth

Teach ./sky/tools/gn where to run the gn binary

上级 32eaf0fd
......@@ -8,6 +8,8 @@ import subprocess
import sys
import os
SRC_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
def get_out_dir(args):
target_dir = ''
if args.target_os == 'android':
......@@ -99,7 +101,7 @@ def main(argv):
print "gn gen --check in %s" % out_dir
command.append(out_dir)
command.append('--args=%s' % ' '.join(gn_args))
return subprocess.call(command)
return subprocess.call(command, cwd=SRC_ROOT)
if __name__ == '__main__':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册