# implement \-femit-asm, \-femit-docs, \-femit-llvm-ir, etc · gitcafe/zig

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

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

Visibility: public

Requested revision: 6af2990549709ec5e2bc1efeb5090a944f1a8bdf

Requested commit: 6af2990549709ec5e2bc1efeb5090a944f1a8bdf

Commit: 6af2990549709ec5e2bc1efeb5090a944f1a8bdf

Tree: c4dc51ddde68c2842b6450bd6dee6432e2226bde

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
implement -femit-asm, -femit-docs, -femit-llvm-ir, etc

These CLI options are now forwarded to the stage1 backend.

We're not going to support the -mllvm CLI option any longer. As a
compromise, we unconditionally tell LLVM to output intel x86 syntax when
using -femit-asm.

Simplify stage1 logic; it no longer has the concept of an output
directory. --output-dir is no longer a valid CLI option. cmake uses
the `-femit-bin=[path]` option.

Note the changes to test/cli.zig. This breaks the CLI API that Godbolt
is using so we're going to want to open a PR to help them upgrade to the
new CLI for the upcoming Zig 0.7.0 release.

```

## Parents

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

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