[PATCH] D78211: [lit] lit.site.cfg.py: support symlinked lit.site.cfg.py files

Milian Wolff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 15 08:44:33 PDT 2020


milianw updated this revision to Diff 257732.
milianw added a comment.

fixup commit message


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78211/new/

https://reviews.llvm.org/D78211

Files:
  llvm/cmake/modules/AddLLVM.cmake


Index: llvm/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/cmake/modules/AddLLVM.cmake
+++ llvm/cmake/modules/AddLLVM.cmake
@@ -1431,7 +1431,7 @@
   "# Allow generated file to be relocatable.\n"
   "def path(p):\n"
   "  if not p: return ''\n"
-  "  p = os.path.join(os.path.dirname(os.path.abspath(__file__)), p)\n"
+  "  p = os.path.join(os.path.dirname(os.path.realpath(__file__)), p)\n"
   "  p = os.path.normpath(p).replace(os.sep, '/')\n"
   "  if os.name == 'nt' and os.path.isabs(p): return p[0].upper() + p[1:]\n"
   "  return p\n"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78211.257732.patch
Type: text/x-patch
Size: 599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200415/c3cccaeb/attachment.bin>


More information about the llvm-commits mailing list