[all-commits] [llvm/llvm-project] 241e64: ar_to_bc.sh: Ignore non-bitcode files in archives

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jun 1 10:28:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 241e645036f8a4383dfce4c043586ebf9b0ce225
      https://github.com/llvm/llvm-project/commit/241e645036f8a4383dfce4c043586ebf9b0ce225
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-06-01 (Wed, 01 Jun 2022)

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

  Log Message:
  -----------
  ar_to_bc.sh: Ignore non-bitcode files in archives

The script uses llvm-link to link LLVM bitcode files.
5426da8ffa4a6d55adab21026ce6ebe8f1cc6ef2 used -DLLVM_DISABLE_ASSEMBLY_FILES=ON
to ignore object files compiled from lib/Support/BLAKE3/*.S.

A better approach (which fits Bazel better) is to ignore non-bitcode files.

Reviewed By: akyrtzi

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




More information about the All-commits mailing list