[PATCH] D59632: [llvm] [cmake] Add additional headers only if they exist

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 3 09:40:51 PDT 2019


smeenai added inline comments.


================
Comment at: llvm/cmake/modules/LLVMProcessSources.cmake:35
+  foreach(file ${hds})
+    if(EXISTS ${file})
+      list(APPEND filtered ${file})
----------------
I'd add a comment explaining this is for broken symlinks, otherwise I'd be wondering why you were checking for the existence of a file you just globbed...

Actually, is `EXISTS` resolving symlinks documented anywhere? It's unclear if it would return the existence of the symlink itself or the target of the symlink.


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

https://reviews.llvm.org/D59632





More information about the llvm-commits mailing list