[all-commits] [llvm/llvm-project] 2030e6: Avoid ar_to_bc.sh script in symbolizer build; add ...

Matthias Braun via All-commits all-commits at lists.llvm.org
Tue Jun 28 14:50:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2030e6496aaed3d38c9a2725a5ebec4a3264019c
      https://github.com/llvm/llvm-project/commit/2030e6496aaed3d38c9a2725a5ebec4a3264019c
  Author: Matthias Braun <matze at braunis.de>
  Date:   2022-06-28 (Tue, 28 Jun 2022)

  Changed paths:
    R compiler-rt/lib/sanitizer_common/symbolizer/scripts/ar_to_bc.sh
    M compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh
    A llvm/test/tools/llvm-link/archive-non-bitcode.ll
    M llvm/tools/llvm-link/llvm-link.cpp

  Log Message:
  -----------
  Avoid ar_to_bc.sh script in symbolizer build; add -ignore-non-bitcode flag to llvm-link

Remove the `ar_to_bc.sh` helper script in the compiler-rt symbolizer
build. Instead use `llvm-link` directly as D81109 introduced the
capability to read archives. I just needed to add a new flag
`-ignore-non-bitcode` to avoid `llvm-link` aborting when it found a
non-bitcode file in the archive.

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


  Commit: a145a32544a8d04864d9f392e71887f8609206c2
      https://github.com/llvm/llvm-project/commit/a145a32544a8d04864d9f392e71887f8609206c2
  Author: Matthias Braun <matze at braunis.de>
  Date:   2022-06-28 (Tue, 28 Jun 2022)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh

  Log Message:
  -----------
  build_symbolizer: Set LLVM_DEFAULT_TARGET_TRIPLE in llvm builds

Pass on the default target triple of the host clang to the LLVM builds
within the `build_symbolizer.sh` script.

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


Compare: https://github.com/llvm/llvm-project/compare/ddc9e8861ccf...a145a32544a8


More information about the All-commits mailing list