# stage2: fixes to extern variables · gitcafe/zig

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

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

Visibility: public

Requested revision: 4d6d6977b05571e6d164dbf5f26c7a48ee3541a3

Requested commit: 4d6d6977b05571e6d164dbf5f26c7a48ee3541a3

Commit: 4d6d6977b05571e6d164dbf5f26c7a48ee3541a3

Tree: beb25554dc6e6f9f238ee84d0096f89a557f4ea5

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fixes to extern variables

 * Relax compile error for "unable to export type foo" to allow
   integers, structs, arrays, and floats. This will need to be further
   improved to do the same checks as we do for C ABI struct field types.
 * LLVM backend: fix extern variables
 * LLVM backend: implement AIR instruction `wrap_err_union_payload`

```

## Parents

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

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