diff options
Diffstat (limited to 'lib/Driver/Distro.cpp')
-rw-r--r-- | lib/Driver/Distro.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Driver/Distro.cpp b/lib/Driver/Distro.cpp index eb537c87e7..396d0bee56 100644 --- a/lib/Driver/Distro.cpp +++ b/lib/Driver/Distro.cpp @@ -138,6 +138,9 @@ static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) { if (VFS.exists("/etc/arch-release")) return Distro::ArchLinux; + if (VFS.exists("/etc/gentoo-release")) + return Distro::Gentoo; + return Distro::UnknownDistro; } |