[win][compiler-rt] Make tests use lld-link instead of link
authorArthur Eubanks <aeubanks@google.com>
Tue, 18 Oct 2022 15:46:14 +0000 (08:46 -0700)
committerArthur Eubanks <aeubanks@google.com>
Tue, 18 Oct 2022 15:46:23 +0000 (08:46 -0700)
commitaa89ceab485cd8d5ff1e11dd67a479741ed1f6dd
tree845b865990cae21247078ab28e987afcd3801d65
parentdb98c06f11ad1996fc0690c812df7854a0bb0aa2
[win][compiler-rt] Make tests use lld-link instead of link

Git bash ships with a link.exe. We try to add git bash to the beginning
of PATH (see D84380). These tests end up executing the wrong link.exe.

As a workaround, use lld-link. Note that `REQUIRES: lld-available` tests currently aren't running, see D128567. I did manually verify that these tests pass with lld-link.

Reviewed By: rnk, hans

Differential Revision: https://reviews.llvm.org/D136108
compiler-rt/test/asan/TestCases/Windows/dll_and_lib.cpp
compiler-rt/test/asan/TestCases/Windows/dll_large_function.cpp
compiler-rt/test/asan/TestCases/Windows/unsymbolized.cpp