# Use \`\-unknown\` when converting WASI/Emscripten target triples into LLVM triples · gitcafe/zig

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

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

Visibility: public

Requested revision: e62a3ea74eb4d019a3360f666700579ca6b30cb9

Requested commit: e62a3ea74eb4d019a3360f666700579ca6b30cb9

Commit: e62a3ea74eb4d019a3360f666700579ca6b30cb9

Tree: e192a15eefe840518593c41d873eba08f4e8e6c1

Author: Carl Åstholm

Committer: Alex Rønne Petersen

## Message

```
Use `-unknown` when converting WASI/Emscripten target triples into LLVM triples

The "musl" part of the Zig target triples `wasm32-wasi-musl` and
`wasm32-emscripten-musl` refers to the libc, not really the ABI.

For WASM, most LLVM-based tooling uses `wasm32-wasi`, which is
normalized into `wasm32-unknown-wasi`, with an implicit `-unknown` and
without `-musl`.

Similarly, Emscripten uses `wasm32-unknown-emscripten` without `-musl`.

By using `-unknown` instead of `-musl` we get better compatibility with
external tooling.

```

## Parents

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

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