[all-commits] [llvm/llvm-project] e434fc: gn build: Support cross-compiling libunwind for An...

pcc via All-commits all-commits at lists.llvm.org
Thu Feb 11 21:48:00 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e434fc0dde8c6b11df8c4d68c2758c3b5d69a97f
      https://github.com/llvm/llvm-project/commit/e434fc0dde8c6b11df8c4d68c2758c3b5d69a97f
  Author: Peter Collingbourne <peter at pcc.me.uk>
  Date:   2021-02-11 (Thu, 11 Feb 2021)

  Changed paths:
    M llvm/utils/gn/secondary/libunwind/BUILD.gn
    M llvm/utils/gn/secondary/libunwind/src/BUILD.gn

  Log Message:
  -----------
  gn build: Support cross-compiling libunwind for Android.

- Usual cross-compilation fix: s/target_/current_/g

- Define _LIBUNWIND_IS_NATIVE_ONLY to enable unwinding past
  functions with return pointer authentication.

- Android needs two libunwind static libraries: one with symbols exported and
  one without. These both need to be in the same build tree so
  the libunwind_hermetic_static_library configuration option doesn't
  help here. Replace it with build rules that build both libraries.

- Install the libraries in the location that Android expects them to be.

Differential Revision: https://reviews.llvm.org/D96563




More information about the All-commits mailing list