# Dependency target whitelist conflicts with native

**URL:** <https://ziggit.dev/t/dependency-target-whitelist-conflicts-with-native/18522>\
**Category:** Help\
**Tags:** build-system\
**Created:** [November 19, 2026, 6:45am UTC](https://ziggit.dev/t/dependency-target-whitelist-conflicts-with-native/18522 "2026-11-19T06:45:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffective](https://ziggit.dev/user_avatar/ziggit.dev/jeffective/32/3116_2.png) [@jeffective](https://ziggit.dev/u/jeffective)\
**Post date:** [November 19, 2026, 6:45am UTC](https://ziggit.dev/t/dependency-target-whitelist-conflicts-with-native/18522/1 "2026-11-19T06:45:15Z")

</div>

```zig
info: allowed target: -Dtarget=x86_64-windows-gnu -Dcpu=baseline
info: allowed target: -Dtarget=x86_64-windows-msvc -Dcpu=baseline
info: allowed target: -Dtarget=x86_64-linux-musl -Dcpu=baseline
info: allowed target: -Dtarget=x86_64-linux-gnu -Dcpu=baseline
info: allowed target: -Dtarget=x86_64-macos-none -Dcpu=baseline
info: allowed target: -Dtarget=aarch64-linux-musl -Dcpu=baseline
info: allowed target: -Dtarget=aarch64-linux-gnu -Dcpu=baseline
info: allowed target: -Dtarget=aarch64-macos-none -Dcpu=baseline
error: chosen target "native" does not match one of the allowed targets

```

What does my native (`x86_64-linux`) conflict with my dependency’s whitelist?

```zig
pub fn build(b: *std.Build) void {
    const target = b.standardTargetOptions(.{
        .whitelist = &.{
            .{ .cpu_arch = .x86_64, .os_tag = .windows, .abi = .gnu },
            .{ .cpu_arch = .x86_64, .os_tag = .windows, .abi = .msvc },
            .{ .cpu_arch = .x86_64, .os_tag = .linux, .abi = .musl },
            .{ .cpu_arch = .x86_64, .os_tag = .linux, .abi = .gnu },
            .{ .cpu_arch = .x86_64, .os_tag = .macos, .abi = .none },
            .{ .cpu_arch = .aarch64, .os_tag = .linux, .abi = .musl },
            .{ .cpu_arch = .aarch64, .os_tag = .linux, .abi = .gnu },
            .{ .cpu_arch = .aarch64, .os_tag = .macos, .abi = .none },
        },
    });

```

On zig 0.17.1.

---

<div class="post-metadata">

**Author:** ![jeffective](https://ziggit.dev/user_avatar/ziggit.dev/jeffective/32/3116_2.png) [@jeffective](https://ziggit.dev/u/jeffective)\
**Post date:** [November 19, 2026, 9:27am UTC](https://ziggit.dev/t/dependency-target-whitelist-conflicts-with-native/18522/2 "2026-11-19T09:27:30Z")

</div>

[https://codeberg.org/ziglang/zig/issues/37701](https://codeberg.org/ziglang/zig/issues/37701)

---

<div class="post-metadata">

**Author:** ![alanza](https://ziggit.dev/user_avatar/ziggit.dev/alanza/32/6006_2.png) [@alanza](https://ziggit.dev/u/alanza)\
**Post date:** [November 19, 2026, 11:56am UTC](https://ziggit.dev/t/dependency-target-whitelist-conflicts-with-native/18522/3 "2026-11-19T11:56:34Z")

</div>

native is not baseline for cpu
