It is a usage error to feed a .dll file instead of a .dll to COFF linker.
Previously, lld failed with a mysterious error message. Now we reject
it at the driver.
Details
Diff Detail
- Build Status
Buildable 15591 Build 15591: arc lint + arc unit
Event Timeline
"It is a usage error to feed a .dll file instead of a .dll to COFF linker"
Should be
"It is a usage error to feed a .dll file instead of a .lib to COFF linker"
Do you think it's worth printing a nicer error for the specific case of DLLs (something that tells the user they should be linking against the import library instead)? In particular, binutils supports linking against DLLs directly (it synthesizes an import library on the fly), so a nicer error message could be helpful for users coming from that toolchain.
lld/COFF/Driver.cpp | ||
---|---|---|
135 | Is it standard LLVM or LLD coding style to not have the newlines? |
LGTM
lld/COFF/Driver.cpp | ||
---|---|---|
160 | Nit: I'd prefer "Did you specify a DLL instead of an import library?" (DLL file -> DLL, import file -> import library) |
Is it standard LLVM or LLD coding style to not have the newlines?