[PATCH] D53017: [LLD] [COFF] Look for libfoo.a if foo.lib is specified, for MinGW
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 9 14:24:39 PDT 2018
mstorsjo added inline comments.
================
Comment at: COFF/Driver.cpp:383-385
+ std::string LibName = "lib";
+ LibName += Filename.substr(0, Filename.rfind('.'));
+ LibName += ".dll.a";
----------------
rnk wrote:
> How about `llvm::sys::path::replace_extension`?
I actually just changed it to use that, in the version I updated a few minutes earlier.
https://reviews.llvm.org/D53017
More information about the llvm-commits
mailing list