diff --git a/build/make/gen_msvs_vcxproj.sh b/build/make/gen_msvs_vcxproj.sh index 359157c2201fc567c88756034c1096132b6179bd..a6315b9ee479a2432180b099a486fc623a7fb490 100755 --- a/build/make/gen_msvs_vcxproj.sh +++ b/build/make/gen_msvs_vcxproj.sh @@ -174,6 +174,10 @@ generate_filter() { Include=".\\$f" # Separate file names with Condition? tag_content ObjectFileName "\$(IntDir)$objf" + # Check for AVX and turn it on to avoid warnings. + if [[ $f =~ avx.?\.c$ ]]; then + tag_content AdditionalOptions "/arch:AVX" + fi close_tag ClCompile elif [ "$pat" == "h" ] ; then tag ClInclude \