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

Unified Diff: generate_gypi.sh

Issue 471653004: [libvpx] Disable LTO for one target. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Review comments 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.gyp » ('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 156515c48f09d44fe605f1c03d90f61f520d6298..7b44dd1cdf8a8f102c06a0e05d3394510f883026 100755
--- a/generate_gypi.sh
+++ b/generate_gypi.sh
@@ -80,6 +80,16 @@ function write_target_definition {
echo " ]," >> $2
if [[ $4 == fpu=neon ]]; then
echo " 'cflags!': [ '-mfpu=vfpv3-d16' ]," >> $2
+ echo " 'conditions': [" >> $2
+ echo " # Disable LTO in neon targets due to compiler bug" >> $2
+ echo " # crbug.com/408997" >> $2
+ echo " ['use_lto==1', {" >> $2
+ echo " 'cflags!': [" >> $2
+ echo " '-flto'," >> $2
+ echo " '-ffat-lto-objects'," >> $2
+ echo " ]," >> $2
+ echo " }]," >> $2
+ echo " ]," >> $2
fi
echo " 'cflags': [ '-m$4', ]," >> $2
echo " 'xcode_settings': { 'OTHER_CFLAGS': [ '-m$4' ] }," >> $2
« no previous file with comments | « no previous file | libvpx.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698