freebsd-skq/lib/libclang_rt
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
..
asan Merge llvm, clang, lld, lldb, compiler-rt and libc++ r307894, and update 2017-07-13 21:58:45 +00:00
asan_cxx Update compiler-rt to 3.9.0 release, and update the build glue for 2016-09-03 21:41:29 +00:00
asan_dynamic DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
asan-preinit Update compiler-rt to 3.9.0 release, and update the build glue for 2016-09-03 21:41:29 +00:00
include Merge compiler-rt trunk r300890, and update build glue. 2017-04-22 18:43:15 +00:00
profile Support compiling lib/libclang_rt/profile a bit more with recent versions of gcc 2017-11-05 19:25:06 +00:00
safestack Merge llvm, clang, lld, lldb, compiler-rt and libc++ r307894, and update 2017-07-13 21:58:45 +00:00
stats Merge ^/head r320573 through r320970. 2017-07-13 22:01:38 +00:00
stats_client DIRDEPS_BUILD: Connect more libraries. 2017-07-11 00:32:48 +00:00
ubsan_standalone Merge llvm, clang, lld, lldb, compiler-rt and libc++ r307894, and update 2017-07-13 21:58:45 +00:00
ubsan_standalone_cxx Update compiler-rt to 3.9.0 release, and update the build glue for 2016-09-03 21:41:29 +00:00
Makefile Update compiler-rt to 3.9.0 release, and update the build glue for 2016-09-03 21:41:29 +00:00
Makefile.inc Fix paths for cross-built versions of lib/libclang_rt and hardfloat arm variants 2017-11-05 19:38:51 +00:00