Merge "gen_msvs_vcxproj.sh: Add /arch:AVX for files using AVX."

This commit is contained in:
James Zern 2014-02-12 17:15:06 -08:00 committed by Gerrit Code Review
commit b0eea0a133

View File

@ -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 \