# std.Target: Remove hasDynamicLinker\(\) in favor of DynamicLinker.kind\(\)\. · gitcafe/zig

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

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

Visibility: public

Requested revision: 27c85e5969f01853b2437d56ddc7a7eee9bf35d0

Requested commit: 27c85e5969f01853b2437d56ddc7a7eee9bf35d0

Commit: 27c85e5969f01853b2437d56ddc7a7eee9bf35d0

Tree: 695064b9ecba2fd19c90b5ab8e81db49cdf1d6ce

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
std.Target: Remove hasDynamicLinker() in favor of DynamicLinker.kind().

hasDynamicLinker() was just kind of lying in the case of Darwin platforms for
the benefit of std.zig.system.detectAbiAndDynamicLinker(). A better name would
have been hasElfDynamicLinker() or something. It also got the answer wrong for a
bunch of platforms that don't actually use ELF. Anyway, this was clearly the
wrong layer to do this at, so remove this function and instead use
DynamicLinker.kind() + an isDarwin() check in detectAbiAndDynamicLinker().

```

## Parents

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

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