diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-06-02 21:36:53 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-06-02 21:36:53 +0000 |
commit | 0b200f66b45cb34d0af71a5ce18f4a3c2cffcce1 (patch) | |
tree | c55c94c9ac4b2bc3ebe6f753450a941ccf5767ab /lib/Driver/ToolChains.cpp | |
parent | 4cdb0e2a2e9d93805e5ceaf8bc7018bdd166aec1 (diff) |
Add Debian wheezy/sid to ToolChains.cpp. Patch by Michael Wild. PR10064.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r-- | lib/Driver/ToolChains.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 42ab3a4efe..1a42ce81dd 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -1173,6 +1173,7 @@ enum LinuxDistro { ArchLinux, DebianLenny, DebianSqueeze, + DebianWheezy, Exherbo, RHEL4, RHEL5, @@ -1205,7 +1206,8 @@ static bool IsOpenSuse(enum LinuxDistro Distro) { } static bool IsDebian(enum LinuxDistro Distro) { - return Distro == DebianLenny || Distro == DebianSqueeze; + return Distro == DebianLenny || Distro == DebianSqueeze || + Distro == DebianWheezy; } static bool IsUbuntu(enum LinuxDistro Distro) { @@ -1289,6 +1291,8 @@ static LinuxDistro DetectLinuxDistro(llvm::Triple::ArchType Arch) { return DebianLenny; else if (Data.startswith("squeeze/sid")) return DebianSqueeze; + else if (Data.startswith("wheezy/sid")) + return DebianWheezy; return UnknownDistro; } @@ -1462,9 +1466,10 @@ Linux::Linux(const HostInfo &Host, const llvm::Triple &Triple) if (IsRedhat(Distro)) ExtraOpts.push_back("--no-add-needed"); - if (Distro == DebianSqueeze || IsOpenSuse(Distro) || - IsRedhat(Distro) || Distro == UbuntuLucid || Distro == UbuntuMaverick || - Distro == UbuntuKarmic || Distro == UbuntuNatty) + if (Distro == DebianSqueeze || Distro == DebianWheezy || + IsOpenSuse(Distro) || IsRedhat(Distro) || Distro == UbuntuLucid || + Distro == UbuntuMaverick || Distro == UbuntuKarmic || + Distro == UbuntuNatty) ExtraOpts.push_back("--build-id"); if (IsOpenSuse(Distro)) |