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

Side by Side Diff: build/toolchain.gypi

Issue 497713002: [v8] Add LTO support for Android Chromium. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review comment. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 the V8 project authors. All rights reserved. 1 # Copyright 2013 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 'v8_toolset_for_d8%': 'target', 84 'v8_toolset_for_d8%': 'target',
85 85
86 'host_os%': '<(OS)', 86 'host_os%': '<(OS)',
87 'werror%': '-Werror', 87 'werror%': '-Werror',
88 # For a shared library build, results in "libv8-<(soname_version).so". 88 # For a shared library build, results in "libv8-<(soname_version).so".
89 'soname_version%': '', 89 'soname_version%': '',
90 90
91 # Allow to suppress the array bounds warning (default is no suppression). 91 # Allow to suppress the array bounds warning (default is no suppression).
92 'wno_array_bounds%': '', 92 'wno_array_bounds%': '',
93 93
94 # Link-Time Optimizations
95 'use_lto%': 0,
96
94 'variables': { 97 'variables': {
95 # This is set when building the Android WebView inside the Android build 98 # This is set when building the Android WebView inside the Android build
96 # system, using the 'android' gyp backend. 99 # system, using the 'android' gyp backend.
97 'android_webview_build%': 0, 100 'android_webview_build%': 0,
98 }, 101 },
99 # Copy it out one scope. 102 # Copy it out one scope.
100 'android_webview_build%': '<(android_webview_build)', 103 'android_webview_build%': '<(android_webview_build)',
101 }, 104 },
102 'conditions': [ 105 'conditions': [
103 ['host_arch=="ia32" or host_arch=="x64" or clang==1', { 106 ['host_arch=="ia32" or host_arch=="x64" or clang==1', {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 'USE_EABI_HARDFLOAT=1', 237 'USE_EABI_HARDFLOAT=1',
235 ], 238 ],
236 }], 239 }],
237 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { 240 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', {
238 'defines': [ 241 'defines': [
239 'USE_EABI_HARDFLOAT=0', 242 'USE_EABI_HARDFLOAT=0',
240 ], 243 ],
241 }], 244 }],
242 ], 245 ],
243 }], 246 }],
247 # Disable LTO for v8
248 # v8 is optimized for speed, which takes precedence over
249 # size optimization in LTO.
250 ['use_lto==1', {
251 'cflags!': [
252 '-flto',
253 '-ffat-lto-objects',
254 ],
255 }],
244 ], 256 ],
245 }], # _toolset=="target" 257 }], # _toolset=="target"
246 ], 258 ],
247 }], # v8_target_arch=="arm" 259 }], # v8_target_arch=="arm"
248 ['v8_target_arch=="arm64"', { 260 ['v8_target_arch=="arm64"', {
249 'defines': [ 261 'defines': [
250 'V8_TARGET_ARCH_ARM64', 262 'V8_TARGET_ARCH_ARM64',
251 ], 263 ],
252 }], 264 }],
253 ['v8_target_arch=="ia32"', { 265 ['v8_target_arch=="ia32"', {
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 'OptimizeReferences': '2', 963 'OptimizeReferences': '2',
952 'EnableCOMDATFolding': '2', 964 'EnableCOMDATFolding': '2',
953 }, 965 },
954 }, 966 },
955 }], # OS=="win" 967 }], # OS=="win"
956 ], # conditions 968 ], # conditions
957 }, # Release 969 }, # Release
958 }, # configurations 970 }, # configurations
959 }, # target_defaults 971 }, # target_defaults
960 } 972 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698