fuchsia: Fix run when gn binary path non-absolute

Oops. I thought GN abspath()d this in the regen rule, but it does not.

Bug: crashpad:196
Change-Id: I33dadc5502a5e56f20ba7e4c0403fbc138f052c9
Reviewed-on: https://chromium-review.googlesource.com/864629
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Scott Graham <scottmg@chromium.org>
This commit is contained in:
Scott Graham 2018-01-12 10:25:34 -08:00 committed by Commit Bot
parent 3bc4156c1e
commit 54dc88724e

View File

@ -56,7 +56,7 @@ def _FindGNFromBinaryDir(binary_dir):
if line.startswith(' command = '): if line.startswith(' command = '):
gn_command_line_parts = line.strip().split(' ') gn_command_line_parts = line.strip().split(' ')
if len(gn_command_line_parts) > 2: if len(gn_command_line_parts) > 2:
return gn_command_line_parts[2] return os.path.join(binary_dir, gn_command_line_parts[2])
return None return None