servo / mozangle

Mozilla’s fork of Google ANGLE, repackaged as a Rust crate
Other
40 stars 21 forks source link

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

Closed dpino closed 1 month ago

dpino commented 4 months ago

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

warning: mozangle@0.5.1: 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.