[lld] r340487 - win: Omit ".exe" from lld warning and error messages.

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 23 09:40:20 PDT 2018


Hi Nico,

This seems to be causing a failure on the Windows-lld buildbot:

    http://lab.llvm.org:8011/builders/lld-x86_64-win7

Specifically the lld :: ELF/lto-plugin-ignore.s test. On Win10 and this
commit, I get the following output for that test:

    ld.lld: error: --plugin-opt: ld.lld.exe: Unknown command line argument
'-abc'.

Where the first ld.lld has successfully had the .exe suffix stripped, but
not the second instance. This seems to be because parseClangOption in
ELF/Driver.cpp passes the program name straight down to LLVMs command line
parser, which then formats an error message with the .exe extension baked
in.

--
Thanks,
Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180823/89c14465/attachment.html>


More information about the llvm-commits mailing list