stage2: proper `-femit-implib` frontend support

* Improve the logic for determining whether emitting an import lib is
   eligible, and improve the error message when the user provides
   contradictory arguments.
 * Integrate with the EmitLoc / Emit system that already exists, and use
   the `-femit-implib[=path]`/`-fno-emit-implib` convention that already
   exists.
 * Proper integration with the caching system.
 * CLI: fix bug in error reporting for resolving EmitLoc values for
   other parameters.
27c5c7fb23Andrew Kelley committed on 11/25/2021, 1:12:56 AMparent7e23b32
4 files changedLine totals unavailable