# build system: fix wrong glibc dir passed to qemu for i386 · gitcafe/zig

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

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

Visibility: public

Requested revision: 799d1f0d36f69c8aead5184a76f87b557d690d7b

Requested commit: 799d1f0d36f69c8aead5184a76f87b557d690d7b

Commit: 799d1f0d36f69c8aead5184a76f87b557d690d7b

Tree: c731b5cebf5f86b19b381b989577cb8693af6d60

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
build system: fix wrong glibc dir passed to qemu for i386

Without this, and with `-Denable-qemu -Denable-foreign-glibc`,
i386-linux-gnu tests failed because the `-L` path passed to qemu
was "i386-linux-gnu" (nonexistent) rather than "i686-linux-gnu".

Fixes std lib and behavior tests when using these options to enable
test coverage with cross compiled glibcs.

```

## Parents

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

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