]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - utils/gn/secondary/llvm/include/llvm/Support/BUILD.gn
Vendor import of llvm trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / utils / gn / secondary / llvm / include / llvm / Support / BUILD.gn
1 declare_args() {
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
7 }
8
9 action("write_vcsrevision") {
10   script = "//llvm/utils/gn/build/write_vcsrevision.py"
11   header = "$target_gen_dir/VCSRevision.h"
12
13   args = [ rebase_path(header, root_build_dir) ]
14   if (!llvm_allow_tardy_revision) {
15     depfile = "$header.d"
16     args += [
17       "-d",
18       rebase_path(depfile, root_build_dir),
19     ]
20   }
21
22   outputs = [
23     header,
24   ]
25 }