matteo-rm wrote: The same pattern appears in compiler-rt at `compiler-rt/CMakeLists.txt:536` and `compiler-rt/cmake/Modules/AddCompilerRT.cmake:457`. Those may also be worth fixing. https://github.com/llvm/llvm-project/pull/242747