llvm-project
2b8be787 - [clang][MinGW] Fix "[clang] [MinGW] Fix paths on Gentoo" (#219979)

Commit
19 hours ago
[clang][MinGW] Fix "[clang] [MinGW] Fix paths on Gentoo" (#219979) Fixes 8e218026f8d5eabfdef9141ae5e26aa91d1933e6. The above commit unconditionally added Gentoo specific paths to all MinGW installations, which is redundant for most other platforms and causes confusion. Follow the directory-based fallback in the GNU driver's GCCInstallCandidate::addGCCLibStdCxxIncludePaths: prefer the standard libstdc++ layouts and only try the Gentoo g++-v layout only when none of the standard include directories exists. Use the first existing g++-v directory, checking the full version, major.minor, and major in that order. Skip the fallback when no GCC installation was found to avoid adding relative include paths. Similarly, only add mingw/lib and usr/include if they exist. Assisted-by: GPT 6.2 Sol --------- Signed-off-by: Zhongteng Gui <dragon-archer@outlook.com>
Author
Parents
Loading