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

Unified Diff: generate_gypi.sh

Issue 982363003: Add -fsanitize=cfi-vptr to list of flags disabled in AVX2 code. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 9 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 50a1501f809f2bc33deb2c883223ff2faeb4b77f..9fed2cc93ced72f070bfea46b8b228c16c26f1ef 100755
--- a/generate_gypi.sh
+++ b/generate_gypi.sh
@@ -125,7 +125,7 @@ function write_target_definition {
echo " }," >> "$2"
echo " # TODO(pcc): Remove this once we properly support subtarget specific" >> "$2"
echo " # code generation in LLVM (http://llvm.org/PR19416)." >> "$2"
- echo " 'cflags!': [ '-flto' ]," >> "$2"
+ echo " 'cflags!': [ '-flto', '-fsanitize=cfi-vptr', ]," >> "$2"
elif [[ $4 == ssse3 || $4 == sse4.1 ]]; then
echo " 'conditions': [" >> "$2"
echo " ['OS==\"win\" and clang==1', {" >> "$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