[llvm-branch-commits] [llvm] release/19.x: Revert "[LLVM] Silence compiler-rt warning in runtimes build (#99525)" (PR #102475)

Peter Waller via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 8 07:58:18 PDT 2024


peterwaller-arm wrote:

For reasons I don't understand, cmake is not producing debug output for the find_package call for LLVM if I use `cmake --debug-find`. It does produce output for other packages. 

Resorting to strace -efile:

Good:

```
/home/ubuntu/llvm-project/compiler-rt/cmake/Modules/CompilerRTUtils.cmake(312):  find_package(LLVM HINTS /home/ubuntu/bld4 )
access("/home/ubuntu/bld4/lib/cmake/llvm/LLVMConfig.cmake", R_OK) = 0
```

Bad:

```
/home/ubuntu/llvm-project/compiler-rt/cmake/Modules/CompilerRTUtils.cmake(312):  find_package(LLVM HINTS /home/ubuntu/llvm-project/llvm/cmake/modules )
access("/usr/lib/llvm-14/cmake/LLVMConfig.cmake", R_OK) = 0
```

Not sure why cmake is ignoring the hint. It doesn't appear to test any other directories.


https://github.com/llvm/llvm-project/pull/102475


More information about the llvm-branch-commits mailing list