[all-commits] [llvm/llvm-project] e73177: Fix use of add_llvm_tool in projects that build no...

Kévin Petit via All-commits all-commits at lists.llvm.org
Thu Nov 14 02:53:49 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e73177ea5fd611026abcbaecc6232eee8d8d2ed8
      https://github.com/llvm/llvm-project/commit/e73177ea5fd611026abcbaecc6232eee8d8d2ed8
  Author: Kevin Petit <kevin.petit at arm.com>
  Date:   2019-11-14 (Thu, 14 Nov 2019)

  Changed paths:
    M llvm/cmake/modules/LLVM-Config.cmake

  Log Message:
  -----------
  Fix use of add_llvm_tool in projects that build no targets

Projects that set LLVM_TARGETS_TO_BUILD to an empty list
can't use add_llvm_tool (and probably other macros).

Here's the error that this change fixes:

list sub-command REMOVE_ITEM requires two or more arguments.

https://reviews.llvm.org/D70167

Signed-off-by: Kevin Petit <kevin.petit at arm.com>




More information about the All-commits mailing list