jhuber6 wrote:

> For reasons I don't understand, cmake (version 3.22.1, default on Ubuntu 
> 22.04.4) 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.

Do you know what `LLVM_CONFIG_PATH` is set to in this case? The old handling 
was to get the config path based off of that, so i'd be surprised if it were 
fundamentally different. The runtimes build should not be using a config that 
exists out-of-tree as far as I'm aware.

https://github.com/llvm/llvm-project/pull/102475
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to