1 # Creates a symlink (or, on Windows, copies).
3 # source: Path to link to.
4 # output: Where to create the symlink.
5 template("symlink_or_copy") {
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
12 "$target_gen_dir/" + get_path_info(invoker.output, "file") + ".stamp"
16 script = "//llvm/utils/gn/build/symlink_or_copy.py"
19 rebase_path(stamp, root_build_dir),
21 rebase_path(invoker.output, root_build_dir),