]> granicus.if.org Git - clang/commit
[Distro] Support detecting Gentoo
authorMichal Gorny <mgorny@gentoo.org>
Sun, 23 Dec 2018 15:07:19 +0000 (15:07 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Sun, 23 Dec 2018 15:07:19 +0000 (15:07 +0000)
commit40c9a5ffc3ed1bdc20243851b7a0d6eeecf28d5a
treee4fdce2f35f64469fae393f958fd7b6cf52319ac
parenta6eb16ed631365f3bbadd0450ab52746c151794d
[Distro] Support detecting Gentoo

Add support for distinguishing plain Gentoo distribution, and a unit
test for it.  This is going to be used to introduce distro-specific
customizations in the driver code; most notably, it is going to be used
to disable -faddrsig.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350027 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Distro.h
lib/Driver/Distro.cpp
unittests/Driver/DistroTest.cpp