[all-commits] [llvm/llvm-project] 5a0382: [llvm][cmake] Error when a runtime is in LLVM_ENAB...

David Spickett via All-commits all-commits at lists.llvm.org
Wed Sep 25 02:34:44 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a038230b0a61acb9ec6f6fdd380c7d3c8c3d673
      https://github.com/llvm/llvm-project/commit/5a038230b0a61acb9ec6f6fdd380c7d3c8c3d673
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2024-09-25 (Wed, 25 Sep 2024)

  Changed paths:
    M llvm/CMakeLists.txt

  Log Message:
  -----------
  [llvm][cmake] Error when a runtime is in LLVM_ENABLE_PROJECTS and LLVM_ENABLE_RUNTIMES (#109791)

The documentation tells you not to do this:
https://llvm.org/docs/CMake.html#llvm-related-variables

But until now we did not enforce it.

```
$ cmake ../llvm-project/llvm/ -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="pstl" -DLLVM_ENABLE_RUNTIMES="libcxx;pstl"
```
```
CMake Error at CMakeLists.txt:166 (message):
  Runtime project "pstl" found in LLVM_ENABLE_PROJECTS and
  LLVM_ENABLE_RUNTIMES.  It must only appear in one of them and that one
  should almost always be LLVM_ENABLE_RUNTIMES.
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list