[PATCH] D108286: [clang][Driver][Linux] fix regression issue when define LIBCXX_LIBDIR_SUFFIX=64
lin.sun via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 18 04:18:19 PDT 2021
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
More information about the cfe-commits
mailing list