Issue 146279
Summary Does LLVM_ENABLE_PROJECTS=compiler-rt need to be adapted on win
Labels new issue
Assignees
Reporter GkvJwa
    I used the main branch and noticed the following warning

```
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;compiler-rt"

CMake Warning at CMakeLists.txt:189 (message):
  Using LLVM_ENABLE_PROJECTS=compiler-rt is deprecated now, and will become a
 fatal error in the LLVM 21 release.  Please use
 -DLLVM_ENABLE_RUNTIMES=compiler-rt or see the instructions at
 https://compiler-rt.llvm.org/ for building the runtimes.
```

So I maked with ```-DLLVM_ENABLE_RUNTIMES="compiler-rt"```

However, just using LLVM_ENABLE_RUNTIMES will cause the following problems
```
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld" -DLLVM_ENABLE_RUNTIMES="compiler-rt"

-- clang project is enabled
-- clang-tools-extra project is enabled
-- compiler-rt project is disabled
-- cross-project-tests project is disabled
```

This is due to ${proj}```(compiler-rt)``` is not in LLVM_ENABLE_PROJECTS, The project will not be generated
https://github.com/llvm/llvm-project/blob/713839729c97d1ac9492c516d0bf5e1add27fbd3/llvm/CMakeLists.txt#L260-L270


Does LLVM_ENABLE_PROJECTS=compiler-rt need to be adapted or is there any other command?

@petrhosek Can you help me with this problem if you have time?

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to