[profile][test] Add -fuse-ld=bfd to make instrprof-lto-pgogen.c robust
authorFangrui Song <i@maskray.me>
Wed, 22 Jul 2020 17:15:51 +0000 (10:15 -0700)
committerFangrui Song <i@maskray.me>
Wed, 22 Jul 2020 17:16:08 +0000 (10:16 -0700)
commit746b5fad5b53ddbc78d36a6b97dcaff7e52540b2
tree91297084088bdbd958eeccfcab79be3b1d13105a
parent1fd1beea18e45452555ba024e481f476adebca89
[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
compiler-rt/cmake/config-ix.cmake
compiler-rt/test/lit.common.cfg.py
compiler-rt/test/lit.common.configured.in
compiler-rt/test/profile/instrprof-lto-pgogen.c