<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/64958>64958</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang reports that -mcpu= option is unsupported when used together with --version
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          mgabka
      </td>
    </tr>
</table>

<pre>
    When running:
`clang -mcpu=native -v`:
on X86 we can see following error:
`clang: error: unsupported option '-mcpu=' for target 'x86_64-unknown-linux-gnu'`
or 
`clang: error: unsupported option '-mcpu=' for target 'aarch64-unknown-linux-gnu'`
when executed on aarch64.

clang 16 was fine with it, the issue exists with clang 17 rc3 and on the main branch.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysUr2SnDwQfBqRTEFpBQg2ILjvu9pXsDOXgAHJJ0aUfpb127uAvXW5HDhxIgUz09Pd0yoEMxNix-r_WP2eqRS1890yq_5DZb0bf3RfNBL4RGRoZuUb4--MvzHJB6tohnwZ1sTKd1LR3BHyO5P81eUIvrYSNoRBEQREmJy1bjM0A3rv_B94rHx7VSBRSOvqfMQR3BqNI2Ci-dzIRAOT8xCVnzHulUcrv8kqT_RBbqPcGkqPfKbERLOzOil5-IcblfKD_tvKbTcQHzikA5bgOVU8iRzv6eZFwqYCTIYQNhM1mMjE_xA1ggkhIeDDhBjO2nOkAT-UoOiA3jsXZQh6r2jQRTZ25XgtryrD7iKvom3aqm4z3fFxwqHhZVk1vEUuZa-GGi_lWKqpaluemU5wUfJWVBfBed0WU4_XictLI2WNk6pYxXFRxhbW3pfC-Tk7KHayutZtZlWPNhyxEuI0Wog9Yb7b-_M-zYFV3O5yfiFEEy12pzCP-yECRK3iK2afVzHht1sdFqeAI0Q3Y9ToT4vy_I4-GEdZ8rbTMa5hj5y4MXGbTdSpLwa3MHHbGTy_fPXuOw6RidshKDBxOzT9DAAA__9IVAVT">