Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 595834 | Differences between
and this patch

Collapse All | Expand All

(-)a/lib/Support/Triple.cpp (-1 / +21 lines)
Lines 874-879 std::string Triple::normalize(StringRef Str) { Link Here
874
    }
874
    }
875
  }
875
  }
876
876
877
  // Gentoo abuses the vendor field for softfloat/hardfloat ARM
878
  // e.g. arm-softfloat-linux-gnueabi, arm-hardfloat-linux-gnueabi
879
  if (Arch == Triple::arm && Components[1] == "hardfloat") {
880
    switch (Environment) {
881
      case Triple::EABI:
882
        Environment = Triple::EABIHF;
883
        Components[3] = Triple::getEnvironmentTypeName(Environment);
884
        break;
885
      case Triple::GNUEABI:
886
        Environment = Triple::GNUEABIHF;
887
        Components[3] = Triple::getEnvironmentTypeName(Environment);
888
        break;
889
      case Triple::MuslEABI:
890
        Environment = Triple::MuslEABIHF;
891
        Components[3] = Triple::getEnvironmentTypeName(Environment);
892
        break;
893
      default:
894
        break;
895
    }
896
  }
897
877
  // Stick the corrected components back together to form the normalized string.
898
  // Stick the corrected components back together to form the normalized string.
878
  std::string Normalized;
899
  std::string Normalized;
879
  for (unsigned i = 0, e = Components.size(); i != e; ++i) {
900
  for (unsigned i = 0, e = Components.size(); i != e; ++i) {
880
- 

Return to bug 595834