Skip to content

[C++] Invalid MSVC flag causes nuisance C++ build warnings #50527

Description

@loctormor

Describe the bug, including details regarding any error messages, version, and platform.

A cmake file configuring CXX flags currently sets "/arch:SSE4.2" for MSVC x86 builds. This is invalid syntax, causing hundreds of warnings from the compiler. Tested with cl.exe from Visual Studio 18.
https://learn.microsoft.com/en-us/cpp/build/reference/arch-x86

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions