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

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

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

Visibility: public

Requested revision: 777215d78bd49597dc0b369c8b71765a0e5d338c

Requested commit: 777215d78bd49597dc0b369c8b71765a0e5d338c

Commit: 777215d78bd49597dc0b369c8b71765a0e5d338c

Tree: 0b2278b712dc84ebeed4367448131c89545ae3e6

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

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

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