sunlin added a subscriber: MaskRay.
sunlin added a comment.

Hi @MaskRay  Please help to review this change.

I compiled clang with  "-DLLVM_LIBDIR_SUFFIX=64"  "-DLIBCXX_LIBDIR_SUFFIX=64" 
"-DLIBCXXABI_LIBDIR_SUFFIX=64" and the clang 12 work as expected.
But after I turn to clang 13, it's failed to comiple the cpp  for can not find 
"-lc++".

After debuging the clang, I find the "../lib64" is not in the libraries path 
list in clang 13.0. 
Here is the key line in clang 12:
https://github.com/llvm/llvm-project/blob/fed41342a82f5a3a9201819a82bf7a48313e296b/clang/lib/Driver/ToolChains/Linux.cpp#L309

This patch can resolve the regression issue.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D108286

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

Reply via email to