diff options
author | halcanary <halcanary@google.com> | 2015-05-26 08:01:19 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-26 08:01:19 -0700 |
commit | 43315bbe4b39073bb8a585cc806eb50a72224e5a (patch) | |
tree | 4b52efb86b706bd071602e494196cac0436be972 /bin | |
parent | 340cd84c9c054f4a1680113ddff3354efa925599 (diff) |
sync-and-gyp: make smarter
This fixes two issues: If gyp is run with the CXX and CC environment
variables set, it will produce different ninja build files.
sync-and-gyp now tracks the values of those variables; if they change,
re-run gyp.
Secondly, we introduced find.py, which is used inside gyp files. If
the contents of certain directories changes, gyp should be re-run. So
now we track those directories too.
Review URL: https://codereview.chromium.org/1153083002
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/sync-and-gyp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/sync-and-gyp b/bin/sync-and-gyp index 825f31697e..eb0311ae10 100755 --- a/bin/sync-and-gyp +++ b/bin/sync-and-gyp @@ -41,9 +41,12 @@ function catifexists() { if [ -f "$1" ]; then cat "$1"; fi; } function gyp_hasher() { { + echo "$CC" + echo "$CXX" echo "$GYP_GENERATORS" echo "$GYP_DEFINES" find gyp -type f -print -exec git hash-object {} \; + find bench gm tests -name '*.c*' | LANG= sort } | git hash-object --stdin } |