1import("//llvm/utils/gn/build/write_vcsrevision.gni")
2
3write_vcsrevision("write_vcsrevision") {
4  header = "$target_gen_dir/VCSRevision.h"
5}
6
7# Corresponds to process_llvm_pass_plugins() in the CMake build.
8# For now, just turn everything off.
9# If we ever add real support for this, the GN way for this is probably
10# to have a declare_args() list with plugin names that people can override
11# in their args.gn and with empty defaults (similar to llvm_targets_to_build).
12action("write_extension_def") {
13  script = "//llvm/utils/gn/secondary/llvm/include/llvm/Support/write_extension_def.py"
14  outputs = [ "$target_gen_dir/Extension.def" ]
15
16  # If any extensions should be enabled, they'd be passed as additional
17  # arguments, e.g. `args += [ "Bye", "Polly" ]`.
18  args = [
19    "-o",
20    rebase_path(outputs[0], root_build_dir),
21  ]
22}
23