From 0e743b1582d53d3ebb2074da881e00bfb759f250 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 28 Dec 2011 18:17:14 +0000 Subject: [PATCH] Handle a /etc/debian_version with a version number instead of a codename. Patch by Sylvestre Ledru. Fixes PR11673. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147313 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/ToolChains.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index b53f2d3388..3034ede2ae 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -1817,9 +1817,9 @@ static LinuxDistro DetectLinuxDistro(llvm::Triple::ArchType Arch) { StringRef Data = File.get()->getBuffer(); if (Data[0] == '5') return DebianLenny; - else if (Data.startswith("squeeze/sid")) + else if (Data.startswith("squeeze/sid") || Data[0] == '6') return DebianSqueeze; - else if (Data.startswith("wheezy/sid")) + else if (Data.startswith("wheezy/sid") || Data[0] == '7') return DebianWheezy; return UnknownDistro; } -- 2.40.0