2 # If this set to false, VCSRevision.h is updated after every git commit.
3 # That's technically correct, but results in rebuilds after every commit.
4 # If it's true (default), VCSRevision.h will usually be somewhat
5 # out-of-date, but builds will be faster.
6 llvm_allow_tardy_revision = true
9 action("write_vcsrevision") {
10 script = "//llvm/utils/gn/build/write_vcsrevision.py"
11 header = "$target_gen_dir/VCSRevision.h"
13 args = [ rebase_path(header, root_build_dir) ]
14 if (!llvm_allow_tardy_revision) {
18 rebase_path(depfile, root_build_dir),