commit | ec876d0d90f9faec636592028d2c32745195c31c | [log] [tgz] |
---|---|---|
author | Tom Anderson <thomasanderson@chromium.org> | Sat Feb 10 00:00:31 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Sat Feb 10 00:00:31 2018 |
tree | aa77fe09cb396654c95494f32569c3835600c291 | |
parent | fe4c8a230e019cbc243d3d3b9164aa8e117850d9 [diff] |
Fix gn reference in build.ninja after bootstrapping After bootstrapping gn, build.ninja has a reference that looks something like: command = ../../../../../../../../../../tmp/tmp9Pn0sv/gn --root=../.. -q gen . This reference will be broken when the OS removes the temporary directory. This CL regenerates the build files using the gn executable from the build directory. This on its own will update the reference to plain "gn", however we need the reference to be "./gn", because "gn" might not exist in the PATH, or would point to an old one from depot_tools. BUG=808829 R=dpranke Change-Id: I1b156a6af081a35ded152946af13a117563b8c1a Reviewed-on: https://chromium-review.googlesource.com/905793 Commit-Queue: Thomas Anderson <thomasanderson@chromium.org> Reviewed-by: Brett Wilson <brettw@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#535892} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 00eba186828272462f318ee7ff4ed2106a6388a7
GN is a meta-build system that generates Ninja build files so that you can build Chromium with Ninja.
gn check
and the visibility
, public_deps
, and data_deps
options for some examples).As of Oct 2016:
Read these links: