From ac76ec7ce8ca13496fb0b061ab882ac459198126 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sat, 3 Jun 2017 22:31:06 +0000 Subject: 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 --- llvm/lib/Support/Triple.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/Support/Triple.cpp') 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"; -- cgit v1.2.3