Enji Cooper 571e134eea Fix paths for cross-built versions of lib/libclang_rt and hardfloat arm variants
- Define TARGET_CPUARCH and use in libclang_rt as the basis for CRTARCH

  When cross-compiling, the wrong architecture was being embedded in the
  libclang_rt binary filenames. It should be based on TARGET_ARCH (target), not
  MACHINE_ARCH (host).

  If TARGET_ARCH isn't defined (host-builds), fallback to MACHINE_ARCH.

- Define CRTARCH to armhf when TARGET/TARGET_ARCH are set to arm/armv[67]

  TARGET_ABI/TARGET_CPU in Makefile.inc1 sets the ABI to gnueabihf, which
  affects the clang lookup path per `getArchNameForCompilerRTLib(..)` in
  contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp, so chase clang and
  Linux's assumed naming convention for hard-float arm architectures.

  CROSSENV (in Makefile.inc1) sets CPUTYPE/MACHINE(_ARCH)? to the
  TARGET*-relevant values when building the `libraries` target, so test
  those variables instead.

- Add OLD_FILES/OLD_LIBS entries for TARGET/TARGET_ARCH == arm/armv[67]. This
  impacts only arm/armv6 and arm/armv7.

PR:	222925
2017-11-05 19:38:51 +00:00
..
2017-11-04 21:02:26 +00:00
2017-10-05 23:01:33 +00:00
2017-01-28 16:31:23 +00:00
2016-06-03 19:25:36 +00:00
2016-06-03 19:25:36 +00:00
2016-06-03 19:25:36 +00:00
2017-08-13 01:23:13 +00:00
2017-03-07 01:42:30 +00:00
2016-12-23 02:57:00 +00:00
2017-07-31 08:02:25 +00:00
2016-12-23 02:57:00 +00:00
2017-11-05 04:08:00 +00:00
2016-03-11 01:35:39 +00:00
2017-11-05 04:08:00 +00:00