This is a minor follow-up to https://reviews.llvm.org/D49189. On Windows, lld used to print "lld-link.exe: error: ...". Now it just prints "lld-link: error: ...". This matches what link.exe does (it prints "LINK : ...") and makes lld's output less dependent on the host system.
Details
Diff Detail
Event Timeline
It looks like this patch uses the knowledge of the default filename of the lld executable for each target, but what we want to do is simple: strip ".exe" from the end of the string if exists. So maybe we should create stripExe function or something?
lld/ELF/Driver.cpp | ||
---|---|---|
77 | I believe you need case-insensitive comparison. |
Thanks, that's a good suggestion. I put the new function in Common/Args.h; I'm not sure if that's the best place.
lld/Common/Args.cpp | ||
---|---|---|
69 | Should not function name start from the lower case? I would also add get prefix: getFilenameWithoutExe. |
lld/Common/Args.cpp | ||
---|---|---|
69 | Sorry, I didn't see this for a few months. Looks like Rui took care for it in http://reviews.llvm.org/rL340716 though. Thanks! |
path -> Path