[all-commits] [llvm/llvm-project] 746b5f: [profile][test] Add -fuse-ld=bfd to make instrprof...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jul 22 10:16:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 746b5fad5b53ddbc78d36a6b97dcaff7e52540b2
      https://github.com/llvm/llvm-project/commit/746b5fad5b53ddbc78d36a6b97dcaff7e52540b2
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-07-22 (Wed, 22 Jul 2020)

  Changed paths:
    M compiler-rt/cmake/config-ix.cmake
    M compiler-rt/test/lit.common.cfg.py
    M compiler-rt/test/lit.common.configured.in
    M compiler-rt/test/profile/instrprof-lto-pgogen.c

  Log Message:
  -----------
  [profile][test] Add -fuse-ld=bfd to make instrprof-lto-pgogen.c robust

Otherwise if 'ld' is an older system LLD (FreeBSD; or if someone adds 'ld' to
point to an LLD from a different installation) which does not support the
current ModuleSummaryIndex::BitCodeSummaryVersion, the test will fail.

Add lit feature 'binutils_lto'. GNU ld is more common than GNU gold, so
we can just require 'is_binutils_lto_supported' to additionally support GNU ld.

Reviewed By: myhsu

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




More information about the All-commits mailing list