# get rid of std.os.foo.is_the_target · gitcafe/zig

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

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

Visibility: public

Requested revision: 60cd11bd4b48e4dfdf11d1f25cb1ee842a49ee1d

Requested commit: 60cd11bd4b48e4dfdf11d1f25cb1ee842a49ee1d

Commit: 60cd11bd4b48e4dfdf11d1f25cb1ee842a49ee1d

Tree: 457ea0157f0f42dccf905593426154be8682812b

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
get rid of std.os.foo.is_the_target

It had the downside of running all the comptime blocks and resolving
all the usingnamespaces of each system, when just trying to discover if
the current system is a particular one.

For Darwin, where it's nice to use `std.Target.current.isDarwin()`, this
demonstrates the utility that #425 would provide.

```

## Parents

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

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