[PATCH] D128729: Avoid ar_to_bc.sh script in symbolizer build; add -ignore-non-bitcode flag to llvm-link

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 28 07:02:05 PDT 2022


MatzeB created this revision.
MatzeB added reviewers: vitalybuka, MaskRay, Sanitizers, zhuhan0.
Herald added subscribers: Enna1, StephenFan, modimo, wenlei, mcrosier.
Herald added a project: All.
MatzeB requested review of this revision.
Herald added projects: Sanitizers, LLVM.
Herald added a subscriber: llvm-commits.

Remove the `ar_to_bc.sh` helper script in the compiler-rt symbolizer
build. Instead use `llvm-link` directly as D81109 <https://reviews.llvm.org/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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128729

Files:
  compiler-rt/lib/sanitizer_common/symbolizer/scripts/ar_to_bc.sh
  compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh
  llvm/tools/llvm-link/llvm-link.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128729.440604.patch
Type: text/x-patch
Size: 4341 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220628/0dc6e58e/attachment.bin>


More information about the llvm-commits mailing list