Toolchain support for Ubuntu Oneiric. Patch by Michael Wild!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132669 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2011-06-05 16:08:59 +00:00
Родитель 7491c499e8
Коммит 25a857b803
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -1201,6 +1201,7 @@ enum LinuxDistro {
UbuntuLucid,
UbuntuMaverick,
UbuntuNatty,
UbuntuOneiric,
UnknownDistro
};
@ -1224,7 +1225,7 @@ static bool IsUbuntu(enum LinuxDistro Distro) {
return Distro == UbuntuHardy || Distro == UbuntuIntrepid ||
Distro == UbuntuLucid || Distro == UbuntuMaverick ||
Distro == UbuntuJaunty || Distro == UbuntuKarmic ||
Distro == UbuntuNatty;
Distro == UbuntuNatty || Distro == UbuntuOneiric;
}
static bool IsDebianBased(enum LinuxDistro Distro) {
@ -1269,6 +1270,8 @@ static LinuxDistro DetectLinuxDistro(llvm::Triple::ArchType Arch) {
return UbuntuMaverick;
else if (Lines[i] == "DISTRIB_CODENAME=natty")
return UbuntuNatty;
else if (Lines[i] == "DISTRIB_CODENAME=oneiric")
return UbuntuOneiric;
}
return UnknownDistro;
}
@ -1497,7 +1500,7 @@ Linux::Linux(const HostInfo &Host, const llvm::Triple &Triple)
ExtraOpts.push_back("-X");
if (IsRedhat(Distro) || IsOpenSuse(Distro) || Distro == UbuntuMaverick ||
Distro == UbuntuNatty)
Distro == UbuntuNatty || Distro == UbuntuOneiric)
ExtraOpts.push_back("--hash-style=gnu");
if (IsDebian(Distro) || IsOpenSuse(Distro) || Distro == UbuntuLucid ||
@ -1512,7 +1515,7 @@ Linux::Linux(const HostInfo &Host, const llvm::Triple &Triple)
(IsRedhat(Distro) && Distro != RHEL4 && Distro != RHEL5) ||
Distro == UbuntuLucid ||
Distro == UbuntuMaverick || Distro == UbuntuKarmic ||
Distro == UbuntuNatty)
Distro == UbuntuNatty || Distro == UbuntuOneiric)
ExtraOpts.push_back("--build-id");
if (IsOpenSuse(Distro))