[PATCH] D46521: [llvm] cmake: resolve symlinks in LLVMConfig.cmake

Peter Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 9 01:40:19 PDT 2018


Lekensteyn abandoned this revision.
Lekensteyn added a comment.

A workaround is to check whether the resolved ${LLVM_CONFIG_CMAKE_DIR} exists, and then try REALPATH as fallback, but that is just stacking another hack on it which starts to become really ugly.

I guess that it is best to carry this patch around for distributions that do know that the real path is correct and leave the current behavior in place to avoid regressing on other platforms.

Thank you for your comments!


Repository:
  rL LLVM

https://reviews.llvm.org/D46521





More information about the llvm-commits mailing list