summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-06-02 21:36:53 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-06-02 21:36:53 +0000
commitf7600949f4c9d97c3b53f8a24e51853c03ebe031 (patch)
tree00dd51cf7e8f87e8ac6827e519d5403aac31bc20
parent5ca08373977685375aa8bb0d1518ff063740f8c6 (diff)
downloadbcm5719-llvm-f7600949f4c9d97c3b53f8a24e51853c03ebe031.tar.gz
bcm5719-llvm-f7600949f4c9d97c3b53f8a24e51853c03ebe031.zip
Add Debian wheezy/sid to ToolChains.cpp. Patch by Michael Wild. PR10064.
llvm-svn: 132489
-rw-r--r--clang/lib/Driver/ToolChains.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp
index 42ab3a4efef..1a42ce81dd3 100644
--- a/clang/lib/Driver/ToolChains.cpp
+++ b/clang/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))
OpenPOWER on IntegriCloud