# smarter detectNativeDynamicLinker logic · gitcafe/zig

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

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

Visibility: public

Requested revision: 5a4e8c779a713d7b07cec262b07afd6883684c98

Requested commit: 5a4e8c779a713d7b07cec262b07afd6883684c98

Commit: 5a4e8c779a713d7b07cec262b07afd6883684c98

Tree: ef48c71ed261bcb0ff675e62b11b84b049c667fe

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
smarter detectNativeDynamicLinker logic

The current target's ABI cannot be relied on for this.
For example, we may build the zig compiler for target
riscv64-linux-musl and provide a tarball for users to
download. A user could then run that zig compiler on
riscv64-linux-gnu. This use case is well-defined and
supported by Zig. But that means that we must detect
the system ABI here rather than
relying on `std.Target.current`.

```

## Parents

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

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