From: Tom Finegan Date: Tue, 11 Feb 2014 01:26:03 +0000 (-0800) Subject: gen_msvs_vcxproj.sh: Add /arch:AVX for files using AVX. X-Git-Tag: v1.4.0~2411^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7836e3a5d7917ff37f83829391e47c0f2d15c6b7;p=platform%2Fupstream%2Flibvpx.git gen_msvs_vcxproj.sh: Add /arch:AVX for files using AVX. Turns on AVX when the final characters of .c and .cc file names preceding the .c and .cc file extension contain the substrings avx or avx2. This silences many MSVC warnings issued during compilation files that use AVX. Change-Id: I82bda394af7a688679abab2a50dd7e10b3cb0c7a --- diff --git a/build/make/gen_msvs_vcxproj.sh b/build/make/gen_msvs_vcxproj.sh index 359157c..a6315b9 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 \