# Enable stage2 end-to-end tests on macOS run natively · gitcafe/zig

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

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

Visibility: public

Requested revision: 0e1afee732c1007280b8afdab51aef3ceb860432

Requested commit: 0e1afee732c1007280b8afdab51aef3ceb860432

Commit: 0e1afee732c1007280b8afdab51aef3ceb860432

Tree: c46ab1a0cc68388cb5c5e58343837d20689a6d6a

Author: Jakub Konka

Committer: Andrew Kelley

## Message

```
Enable stage2 end-to-end tests on macOS run natively

This commit enables stage2 end-to-end tests to run natively on macOS
(where and when applicable). Since QEMU on macOS doesn't support
the same type of architecture emulation as it does on linux (i.e.,
there is no `qemu-x86_64` for instance), this commit ensures that we
specify a path to dynamic linker on macOS (`/usr/lib/dyld`) which
is then checked for existence in `std.CrossTarget.getExternalExecutor()`
function, and if exists, we can run the test natively.

Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>

```

## Parents

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

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