[PATCH] D107799: [CMake] Enable LLVM_ENABLE_PER_TARGET_RUNTIME_DIR by default on Linux

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 10 11:45:51 PDT 2021


phosek added a comment.

In D107799#2937699 <https://reviews.llvm.org/D107799#2937699>, @sylvestre.ledru wrote:

> Not related to your change but with llvm 12:
> -DLLVM_ENABLE_RUNTIMES=ON
> fails with:
>
>   -- Registering Polly as a pass plugin (static build: ON)
>   CMake Error at runtimes/CMakeLists.txt:21 (message):
>     LLVM_ENABLE_RUNTIMES requests ON but directory not found:
>     /home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-12-12.0.1/llvm/runtimes/../../ON

`LLVM_ENABLE_RUNTIMES` takes a list of projects just like `LLVM_ENABLE_PROJECTS`, not a boolean. You can also use `LLVM_ENABLE_RUNTIMES=all` to enable all supported runtimes <https://github.com/llvm/llvm-project/blob/main/runtimes/CMakeLists.txt#L5>.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107799/new/

https://reviews.llvm.org/D107799



More information about the llvm-commits mailing list