Eugene.Zelenko added a comment.

In http://reviews.llvm.org/D15067#299220, @labath wrote:

> In http://reviews.llvm.org/D15067#298902, @Eugene.Zelenko wrote:
>
> > But it's necessary to pass path from CMake command line argument to 
> > find_program after PATHS. Another problem if default OS location (if Clang 
> > installed and of old version) will be returned instead of build one.
>
>
> I don't know what would be the idiomatic cmake-fu to achieve that, but I'd 
> just pass the the full path to the llvm-config binary, including the name. 
> This way, we could also handle cases when the binary has a version suffix 
> (e.g., debian likes to ship the binary as llvm-config-3.x).


I think find_program() should be called if LLVM_CONFIG is empty or not exist.


Repository:
  rL LLVM

http://reviews.llvm.org/D15067



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to