================
@@ -132,6 +124,33 @@ function(link_bc)
   )
 endfunction()
 
+# Create a custom target for each bitcode file, which is the output of a custom
+# command. This is required for parallel compilation of the custom commands 
that
+# generate the bitcode files when using the CMake MSVC generator on Windows.
+#
+# Arguments:
+#  * compile_tgts
+#      Output list of compile targets
+#  * ARCH_SUFFIX <string>
+#      libclc architecture/triple suffix
+#  * FILES <string> ...
+#     List of bitcode files
+function(create_compile_targets compile_tgts)
+  cmake_parse_arguments( ARG "" "ARCH_SUFFIX" "FILES" ${ARGN} )
----------------
wenju-he wrote:

> I think it's best if functions are self-contained, but it's not a blocker.

done, checked both ARCH_SUFFIX and FILES in 
https://github.com/llvm/llvm-project/pull/154479/commits/a8d7ec942a470410d0ab4d0ed728c9f2db27b965

https://github.com/llvm/llvm-project/pull/154479
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to