Hi,
In the LLVM gn build I'm trying to compile crtbegin.o and copy it to a specific directory (so it looks like a normal toolchain directory layout).
Something simple like
source_set("test") {
sources = [ "test.cpp" ]
}
copy("testcopy") {
input_dir = get_label_info(":test", "target_out_dir")
sources = [ "$input_dir/test.test.o" ]
outputs = [ "$root_out_dir/{{source_file_part}}" ]
deps = [ ":test" ]
}
doesn't seem to do anything with `ninja testcopy`. I've also tried things like `sources = [ ":test" ]` but `sources` seems to be expecting files.
Am I holding it wrong or does `copy` not work with `source_set`? Also, is there a way to not manually specify `test.test.o` which seems like unstable internal gn naming?