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
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
"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 ↗ | (On Diff #136589) | Is it standard LLVM or LLD coding style to not have the newlines? |
Comment Actions
LGTM
lld/COFF/Driver.cpp | ||
---|---|---|
161 ↗ | (On Diff #136611) | Nit: I'd prefer "Did you specify a DLL instead of an import library?" (DLL file -> DLL, import file -> import library) |