<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/146279>146279</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Does LLVM_ENABLE_PROJECTS=compiler-rt need to be adapted on win
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          GkvJwa
      </td>
    </tr>
</table>

<pre>
    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?

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysVU2P2zYQ_TXUZSBDor6sgw5ee91u4E2DZNMeA1IcS8xSpEFSdvbfF5Qdx3ZqoEUDCJDgmXmc9-YNzZyTnUZsSPFAilXERt8b2_z2un93YBE34q15gtGhAN8jDExq4JbptgemBWjjZXu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