[gn build] don't repeat arm header targets twice. no behavior change.
authorNico Weber <thakis@chromium.org>
Sun, 15 Mar 2020 22:20:17 +0000 (18:20 -0400)
committerNico Weber <thakis@chromium.org>
Sun, 15 Mar 2020 22:20:26 +0000 (18:20 -0400)
llvm/utils/gn/secondary/clang/lib/Headers/BUILD.gn

index ff0734c..aa1fc8f 100644 (file)
@@ -45,9 +45,10 @@ copy("arm_headers") {
     ":arm_neon",
     ":arm_sve",
   ]
-  sources = get_target_outputs(":arm_neon") + get_target_outputs(":arm_fp16") +
-            get_target_outputs(":arm_mve") + get_target_outputs(":arm_cde") +
-            get_target_outputs(":arm_sve")
+  sources = []
+  foreach (dep, deps) {
+    sources += get_target_outputs(dep)
+  }
   outputs = [ "$clang_resource_dir/include/{{source_file_part}}" ]
 }