# stage2: introduce clangAssemblerSupportsMcpuArg · gitcafe/zig

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

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

Visibility: public

Requested revision: 55811d8dac9109aa6357639908fb4f6c479480f9

Requested commit: 55811d8dac9109aa6357639908fb4f6c479480f9

Commit: 55811d8dac9109aa6357639908fb4f6c479480f9

Tree: 668f796e1c6feeb6972f178c4a9c1333c594cdce

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: introduce clangAssemblerSupportsMcpuArg

Clang has a completely inconsistent CLI for its integrated assembler for
each target architecture. For x86_64, for example, it does not accept
an -mcpu parameter, and emits "warning: unused parameter". However, for
ARM, -mcpu is needed in order to properly lower assembly to machine code
instructions (see new standalone test case provided thanks to @g-w1).

This is a compromise between
b8f85a805bf61ae11d6ee2bd6d8356fbc98ee3ba and
afb9f695b1bdbf81185e7d55d5783bcbab880989.

```

## Parents

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

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