# std.Target: Make DynamicLinker.standard\(\) much stricter\. · gitcafe/zig

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

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

Visibility: public

Requested revision: 059f18855f18f9dd76f74031381e04dd131da528

Requested commit: 059f18855f18f9dd76f74031381e04dd131da528

Commit: 059f18855f18f9dd76f74031381e04dd131da528

Tree: 991fdc0561ccf55da992a7bd8de5ee8c37eacd09

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
std.Target: Make DynamicLinker.standard() much stricter.

Its semantics are now documented in terms of DynamicLinker.kind(os.tag).

The idea here is two-fold:

* The term "standard" actually means something; we shouldn't return a valid
  dynamic linker path for a triple for which it hasn't *actually* been
  standardized. That's just incorrect. For example, previously, this function
  would happily return a path for x86_64-linux-androideabi, csky-macos-gnu, or
  aarch64-hurd-msvc, and other such obvious nonsense.
* Callers that use the return value from this function to do host probing (such
  as std.zig.system.detectAbiAndDynamicLinker()) can now do so with greater
  confidence because DynamicLinker.standard() will eagerly reject nonsensical
  target triples.

```

## Parents

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

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