mozangle icon indicating copy to clipboard operation
mozangle copied to clipboard

Set compiler argument '-march:SSE2' only if target is Windows

Open dpino opened this issue 1 year ago • 0 comments

When building mozangle on Linux, there are many warning message like this printed on stdout:

warning: [email protected]: clang: warning: argument unused during compilation: '-arch:SSE2' [-Wunused-command-line-argument]

The reason is compiler argument -arch:SSE2 is only valid for MSVC.

Only add compiler argument -arch:SSE2 is target platform is Windows.

dpino avatar May 07 '24 12:05 dpino