Commit 8b6898fe authored by Tom Anderson's avatar Tom Anderson Committed by Commit Bot

Add option to gn bootstrap to specify the build directory

R=dpranke@chromium.org

Change-Id: Ie2ccfd24ebff5efc58d972c2755383b79bc3d27b
Reviewed-on: https://chromium-review.googlesource.com/780818Reviewed-by: default avatarDirk Pranke <dpranke@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#518117}
parent f3f58e43
......@@ -63,7 +63,9 @@ def scoped_tempdir():
def run_build(tempdir, options):
if options.debug:
if options.build_path:
build_rel = options.build_path
elif options.debug:
build_rel = os.path.join('out', 'Debug')
else:
build_rel = os.path.join('out', 'Release')
......@@ -109,6 +111,8 @@ def main(argv):
help='Re-used build directory instead of using new '
'temporary location each time')
parser.add_option('--gn-gen-args', help='Args to pass to gn gen --args')
parser.add_option('--build-path', help='The directory in which to build gn, '
'relative to the src directory. (eg. out/Release)')
parser.add_option('-v', '--verbose', action='store_true',
help='Log more details')
options, args = parser.parse_args(argv)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment