diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-06-03 22:31:06 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-06-03 22:31:06 +0000 |
commit | ac76ec7ce8ca13496fb0b061ab882ac459198126 (patch) | |
tree | d8c6d98e920198d89b5aca5a8ceac9f9b1a89524 /llvm/lib/Support/Triple.cpp | |
parent | 0799ff9e64b80e752a674d7a9dafea4f9d7f4761 (diff) | |
download | bcm5719-llvm-ac76ec7ce8ca13496fb0b061ab882ac459198126.tar.gz bcm5719-llvm-ac76ec7ce8ca13496fb0b061ab882ac459198126.zip |
ADT: handle special case of ARM environment for SUSE
SUSE treats "gnueabi" as "gnueabihf" so make sure that we normalise the
environment.
llvm-svn: 304670
Diffstat (limited to 'llvm/lib/Support/Triple.cpp')
-rw-r--r-- | llvm/lib/Support/Triple.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index f7b7ad89e95..dc059f86241 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -877,6 +877,10 @@ std::string Triple::normalize(StringRef Str) { } } + // SUSE uses "gnueabi" to mean "gnueabihf" + if (Vendor == Triple::SUSE && Environment == llvm::Triple::GNUEABI) + Components[3] = "gnueabihf"; + if (OS == Triple::Win32) { Components.resize(4); Components[2] = "windows"; |