[libFuzzer] Use the compiler to link the relocatable object
authorPetr Hosek <phosek@google.com>
Wed, 15 Jun 2022 06:53:18 +0000 (06:53 +0000)
committerPetr Hosek <phosek@google.com>
Wed, 15 Jun 2022 07:16:40 +0000 (07:16 +0000)
commit7524fe962e479416fd6318407eff4eed5b96a40b
treeaa4c8ef327e46987958870635cc63c0f9c6740fd
parentd361ecbd0db7dee643c527297a30548b22e760fa
[libFuzzer] Use the compiler to link the relocatable object

Rather than invoking the linker directly, let the compiler driver
handle it. This ensures that we use the correct linker in the case
of cross-compiling.

Differential Revision: https://reviews.llvm.org/D127828
compiler-rt/lib/fuzzer/CMakeLists.txt