[ARM] Split large widening MVE loads
[llvm-core.git] / utils / gn / build / symlink_or_copy.gni
blobf4f45fd7abd4b17fd75f13b53439a760668a8fbc
1 # Creates a symlink (or, on Windows, copies).
2 # Args:
3 #   source: Path to link to.
4 #   output: Where to create the symlink.
5 template("symlink_or_copy") {
6   action(target_name) {
7     forward_variables_from(invoker, [ "deps" ])
9     # Make a stamp file the output to work around
10     # https://github.com/ninja-build/ninja/issues/1186
11     stamp =
12         "$target_gen_dir/" + get_path_info(invoker.output, "file") + ".stamp"
13     outputs = [
14       stamp,
15     ]
16     script = "//llvm/utils/gn/build/symlink_or_copy.py"
17     args = [
18       "--stamp",
19       rebase_path(stamp, root_build_dir),
20       invoker.source,
21       rebase_path(invoker.output, root_build_dir),
22     ]
23   }