[ELF] Handle GCC collect2 -plugin-opt= on Windows
authorBrett Werling <bwerl.dev@gmail.com>
Wed, 16 Nov 2022 16:16:11 +0000 (08:16 -0800)
committerTobias Hieta <tobias@hieta.se>
Tue, 29 Nov 2022 09:26:09 +0000 (10:26 +0100)
commitabcd0341d8465d55d7293dfc7142fef5055047fa
tree3a02fdb70c2e079d2d628bc40540f02652da6df4
parente6e61e9b2ef7c0fa3fe2cd7c612e00ecf57a9dd8
[ELF] Handle GCC collect2 -plugin-opt= on Windows

Follows up on commit cd5d5ce235081005173566c99c592550021de058 by
additionally ignoring relative paths ending in "lto-wrapper.exe" as
can be the case for GCC cross-compiled for Windows.

Reviewed By: tejohnson

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

(cherry picked from commit cf4f35b78871aecc21e663067c57e60595bd7197)
lld/ELF/Driver.cpp
lld/test/ELF/lto-plugin-ignore.s