зеркало из https://github.com/microsoft/clang-1.git
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
This commit is contained in:
Родитель
b406669fea
Коммит
0e743b1582
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче