[PATCH] D99852: [Driver] Detect libstdc++ include paths for native gcc (-m32 and -m64) on Debian i386
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 4 00:18:12 PDT 2021
MaskRay added a comment.
>From an upstream multiarch build of gcc, the libstdc++ search paths are
/tmp/opt/gcc-debug/lib/gcc/x86_64-pc-linux-gnu/11.0.1/../../../../include/c++/11.0.1
/tmp/opt/gcc-debug/lib/gcc/x86_64-pc-linux-gnu/11.0.1/../../../../include/c++/11.0.1/x86_64-pc-linux-gnu
/tmp/opt/gcc-debug/lib/gcc/x86_64-pc-linux-gnu/11.0.1/../../../../include/c++/11.0.1/backward
(this is similar to cross gcc on Debian)
If you specify `--target=x86_64-linux-gnu` and install it to `/usr`, the paths will become.
/usr/include/c++/11.0.1
/usr/include/c++/11.0.1/x86_64-linux-gnu
/usr/include/c++/11.0.1/backward
If Debian can drop the incdir patch for native gcc, clang driver can still detect the libstdc++ search paths.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99852/new/
https://reviews.llvm.org/D99852
More information about the cfe-commits
mailing list