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

Unified Diff: generate_gypi.sh

Issue 504893003: Attempt to let libvpx's SSE files build with clang-cl. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | 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 09255f193793393ab82ff6b16b75def9dd4d8ee3..156515c48f09d44fe605f1c03d90f61f520d6298 100755
--- a/generate_gypi.sh
+++ b/generate_gypi.sh
@@ -89,6 +89,16 @@ function write_target_definition {
echo " 'EnableEnhancedInstructionSet': '3', # /arch:AVX" >> $2
echo " }," >> $2
echo " }," >> $2
+ elif [[ $4 == ssse3 || $4 == sse4.1 ]]; then
+ echo " 'conditions': [" >> $2
+ echo " ['OS==\"win\" and clang==1', {" >> $2
+ echo " # cl.exe's /arch flag doesn't have a setting for SSSE3/4, and cl.exe" >> $2
+ echo " # doesn't need it for intrinsics. clang-cl does need it, though." >> $2
+ echo " 'msvs_settings': {" >> $2
+ echo " 'VCCLCompilerTool': { 'AdditionalOptions': [ '-m$4' ] }," >> $2
+ echo " }," >> $2
+ echo " }]," >> $2
+ echo " ]," >> $2
fi
echo " }," >> $2
}
« no previous file with comments | « no previous file | libvpx_srcs_x86_64_intrinsics.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698