# stage2: proper \`\-femit-implib\` frontend support · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/27c5c7fb23fceb0a333444408a1dea4188a14c32)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 27c5c7fb23fceb0a333444408a1dea4188a14c32

Requested commit: 27c5c7fb23fceb0a333444408a1dea4188a14c32

Commit: 27c5c7fb23fceb0a333444408a1dea4188a14c32

Tree: 5c995301673743c3398940c0ebed49647e0e3119

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
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.

```

## Parents

- [7e23b3245a9bf6e002009e6c18c10a9995671afa](https://git.cafe/gitcafe/zig/commit/7e23b3245a9bf6e002009e6c18c10a9995671afa?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/27c5c7fb23fceb0a333444408a1dea4188a14c32?format=markdown)
