]> granicus.if.org Git - clang/commit
[GCC] Match a GCC version with a patch suffix without a third version component
authorMartin Storsjo <martin@martin.st>
Tue, 24 Apr 2018 08:50:11 +0000 (08:50 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 24 Apr 2018 08:50:11 +0000 (08:50 +0000)
commitb74a39adc62028ee68537baa5c1788f2c9492352
treea7be9359427c836ca1faadaf8f938cd786515ab2
parentebc06625aff827418bb7bc2fcada06e4a33f8164
[GCC] Match a GCC version with a patch suffix without a third version component

Previously it would only accept a string as a GCC version if it had
either two components and no suffix, or three components with an
optional suffix.

Debian and ubuntu provided mingw compilers have lib/gcc/target entries
like "5.3-posix" and "5.3-win32". This doesn't try to make any specific
preference between them (other than lexical sorting of the suffix).

Differential Revision: https://reviews.llvm.org/D45505

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330696 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Gnu.cpp
test/Driver/Inputs/mingw_ubuntu_posix_tree/usr/lib/gcc/x86_64-w64-mingw32/5.3-posix/include-fixed/.keep [new file with mode: 0644]
test/Driver/Inputs/mingw_ubuntu_posix_tree/usr/lib/gcc/x86_64-w64-mingw32/5.3-posix/include/c++/backward/.keep [new file with mode: 0644]
test/Driver/Inputs/mingw_ubuntu_posix_tree/usr/lib/gcc/x86_64-w64-mingw32/5.3-posix/include/c++/x86_64-w64-mingw32/.keep [new file with mode: 0644]
test/Driver/Inputs/mingw_ubuntu_posix_tree/usr/x86_64-w64-mingw32/include/.keep [new file with mode: 0644]
test/Driver/mingw.cpp