[clang] [MinGW] Fix paths on Gentoo
authorMark Harmstone <mark@harmstone.com>
Wed, 6 Jul 2022 21:20:42 +0000 (00:20 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 7 Jul 2022 21:37:08 +0000 (00:37 +0300)
commit8e218026f8d5eabfdef9141ae5e26aa91d1933e6
treef465890bc1450fe73d6adfba322d7f33e07e95a9
parent5812f9f10a22ae8f5364554ccd4e79a8a1f160c9
[clang] [MinGW] Fix paths on Gentoo

There's code in clang/lib/Driver/ToolChains/Gnu.cpp for Clang to use Gentoo's include and lib paths, but this is missing for mingw, meaning that any C++ programs using the STL will fail to compile.

See https://bugs.gentoo.org/788430

Differential Revision: https://reviews.llvm.org/D111081
clang/lib/Driver/ToolChains/MinGW.cpp
clang/lib/Driver/ToolChains/MinGW.h
clang/test/Driver/mingw-sysroot.cpp
clang/test/Driver/mingw.cpp