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

Side by Side 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, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | libvpx.gyp » ('j') | libvpx.gyp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash -e 1 #!/bin/bash -e
2 # 2 #
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # This script is used to generate .gypi files and files in the config/platform 7 # This script is used to generate .gypi files and files in the config/platform
8 # directories needed to build libvpx. 8 # directories needed to build libvpx.
9 # Every time libvpx source code is updated just run this script. 9 # Every time libvpx source code is updated just run this script.
10 # 10 #
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 echo " '<(libvpx_source)'," >> $2 73 echo " '<(libvpx_source)'," >> $2
74 echo " ]," >> $2 74 echo " ]," >> $2
75 echo " 'sources': [" >> $2 75 echo " 'sources': [" >> $2
76 for f in $sources_list 76 for f in $sources_list
77 do 77 do
78 echo " '<(libvpx_source)/$f'," >> $2 78 echo " '<(libvpx_source)/$f'," >> $2
79 done 79 done
80 echo " ]," >> $2 80 echo " ]," >> $2
81 if [[ $4 == fpu=neon ]]; then 81 if [[ $4 == fpu=neon ]]; then
82 echo " 'cflags!': [ '-mfpu=vfpv3-d16' ]," >> $2 82 echo " 'cflags!': [ '-mfpu=vfpv3-d16' ]," >> $2
83 echo " 'conditions': [" >> $2
84 echo " # Disable LTO in neon targets due to compiler bug" >> $2
Nico 2014/08/29 14:30:41 Should this link to some tracking bug so that it's
Fabrice (no longer in Chrome) 2014/08/29 14:45:00 Done.
85 echo " ['use_lto==1', {" >> $2
86 echo " 'cflags!': [" >> $2
87 echo " '-flto'," >> $2
88 echo " '-ffat-lto-objects'," >> $2
89 echo " ]," >> $2
90 echo " }]," >> $2
91 echo " ]," >> $2
83 fi 92 fi
84 echo " 'cflags': [ '-m$4', ]," >> $2 93 echo " 'cflags': [ '-m$4', ]," >> $2
85 echo " 'xcode_settings': { 'OTHER_CFLAGS': [ '-m$4' ] }," >> $2 94 echo " 'xcode_settings': { 'OTHER_CFLAGS': [ '-m$4' ] }," >> $2
86 if [[ $4 == avx* ]]; then 95 if [[ $4 == avx* ]]; then
87 echo " 'msvs_settings': {" >> $2 96 echo " 'msvs_settings': {" >> $2
88 echo " 'VCCLCompilerTool': {" >> $2 97 echo " 'VCCLCompilerTool': {" >> $2
89 echo " 'EnableEnhancedInstructionSet': '3', # /arch:AVX" >> $2 98 echo " 'EnableEnhancedInstructionSet': '3', # /arch:AVX" >> $2
90 echo " }," >> $2 99 echo " }," >> $2
91 echo " }," >> $2 100 echo " }," >> $2
92 elif [[ $4 == ssse3 || $4 == sse4.1 ]]; then 101 elif [[ $4 == ssse3 || $4 == sse4.1 ]]; then
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 make_clean 454 make_clean
446 make libvpx_srcs.txt target=libs $config > /dev/null 455 make libvpx_srcs.txt target=libs $config > /dev/null
447 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_generic 456 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_generic
448 457
449 echo "Remove temporary directory." 458 echo "Remove temporary directory."
450 cd $BASE_DIR 459 cd $BASE_DIR
451 rm -rf $TEMP_DIR 460 rm -rf $TEMP_DIR
452 461
453 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? 462 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel?
454 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? 463 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel?
OLDNEW
« no previous file with comments | « no previous file | libvpx.gyp » ('j') | libvpx.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698