Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: generate_gypi.sh

Issue 866273003: Use the correct AVX flags for Windows builds (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: elif Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | libvpx_srcs_x86_64_intrinsics.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generate_gypi.sh
diff --git a/generate_gypi.sh b/generate_gypi.sh
index c142206a74a69cae5c1d9aa86402ec967a3e0354..92daca7d59626a3677aec4388506a0bf57680860 100755
--- a/generate_gypi.sh
+++ b/generate_gypi.sh
@@ -117,10 +117,10 @@ function write_target_definition {
fi
echo " 'cflags': [ '-m$4', ]," >> "$2"
echo " 'xcode_settings': { 'OTHER_CFLAGS': [ '-m$4' ] }," >> "$2"
- if [[ $4 == avx* ]]; then
+ if [[ $4 == avx2 ]]; then
echo " 'msvs_settings': {" >> "$2"
echo " 'VCCLCompilerTool': {" >> "$2"
- echo " 'EnableEnhancedInstructionSet': '3', # /arch:AVX" >> "$2"
+ echo " 'EnableEnhancedInstructionSet': '5', # /arch:AVX2" >> "$2"
echo " }," >> "$2"
echo " }," >> "$2"
elif [[ $4 == ssse3 || $4 == sse4.1 ]]; then
« no previous file with comments | « BUILD.gn ('k') | libvpx_srcs_x86_64_intrinsics.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698