[Lldb-commits] [lldb] [lldb] Use add_custom_command for SBLanguages.h (PR #91254)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Mon May 6 13:21:41 PDT 2024


bulbazord wrote:

This should work if there is exactly one thing that depends on the output of this custom command. If multiple things start depending on the generated files, you may end up with weird results. See:

https://cmake.org/cmake/help/latest/command/add_custom_command.html
> Do not list the output in more than one independent target that may build in parallel or the instances of the rule may conflict. Instead, use the [add_custom_target()](https://cmake.org/cmake/help/latest/command/add_custom_target.html#command:add_custom_target) command to drive the command and make the other targets depend on that one. See the [Example: Generating Files for Multiple Targets](https://cmake.org/cmake/help/latest/command/add_custom_command.html#example-generating-files-for-multiple-targets) below.

https://github.com/llvm/llvm-project/pull/91254


More information about the lldb-commits mailing list