diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-06-05 16:08:59 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-06-05 16:08:59 +0000 |
commit | 25a857b8039bc86695614126bfe4f21035d6c76b (patch) | |
tree | f97e17960828d539ad01c9930eb6473e2dd96084 /lib/Driver/ToolChains.cpp | |
parent | 7491c499e826682e128a400038361ebcbde30eec (diff) |
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
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r-- | lib/Driver/ToolChains.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 14ca553263..ca613e3d6c 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -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)) |