# stage2: handle extern lib name annotation for vars · gitcafe/zig

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

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

Visibility: public

Requested revision: db9500a31401c65327a4fd556f50d74ce75fb858

Requested commit: db9500a31401c65327a4fd556f50d74ce75fb858

Commit: db9500a31401c65327a4fd556f50d74ce75fb858

Tree: f490658644c9b6741f6375e93189568104e25745

Author: Jakub Konka

Committer: Jakub Konka

## Message

````
stage2: handle extern lib name annotation for vars

For example, a situation like this is allowed

```zig
extern "c" var stderrp: c_int;
```

In this case, `Module.Var` wrapping `stderrp` will have `lib_name`
populated with the library name where this import is expected.

````

## Parents

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

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