Revert "[Driver] Mark m_x86_Features_Group options as TargetSpecific"
authorHans Wennborg <hans@chromium.org>
Tue, 13 Jun 2023 10:50:51 +0000 (12:50 +0200)
committerHans Wennborg <hans@chromium.org>
Tue, 13 Jun 2023 10:50:51 +0000 (12:50 +0200)
commit5160f6fefb0021a0b23e99c7cf621a330241c211
treeea6389322990f11cb79437c79832abe3e971e33e
parentac39cbcd8b634288c5397b4d50835295a9291a25
Revert "[Driver] Mark m_x86_Features_Group options as TargetSpecific"

This broke cross-builds of llvm from x86_64 to arm64 mac, see
comment on
https://github.com/llvm/llvm-project/commit/1d6c3e29f6aa45914faa7be00a939b8f550f38e9

> so that they get an error on non-x86 targets.
> Follow-up to D151590.
>
> As a workaround for https://github.com/llvm/llvm-project/issues/63270, we don't
> report an error for -msse4.2.

This reverts commit 1d6c3e29f6aa45914faa7be00a939b8f550f38e9.
clang/include/clang/Driver/Options.td
clang/test/Driver/x86-target-features.c