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

Side by Side Diff: build/toolchain.gypi

Issue 1295673002: Re-enable LLVM LTO for ARM. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 'USE_EABI_HARDFLOAT=1', 270 'USE_EABI_HARDFLOAT=1',
271 ], 271 ],
272 }], 272 }],
273 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', { 273 [ 'arm_float_abi=="softfp" or arm_float_abi=="default"', {
274 'defines': [ 274 'defines': [
275 'USE_EABI_HARDFLOAT=0', 275 'USE_EABI_HARDFLOAT=0',
276 ], 276 ],
277 }], 277 }],
278 ], 278 ],
279 }], 279 }],
280 # Disable LTO for v8 280 # Disable GCC LTO for v8
281 # v8 is optimized for speed, which takes precedence over 281 # v8 is optimized for speed. Because GCC LTO merges flags at link
282 # size optimization in LTO. 282 # time, we disable LTO to prevent any -O2 flags from taking
283 ['use_lto==1', { 283 # precedence over v8's -Os flag. However, LLVM LTO does not work
284 # this way so we keep LTO enabled under LLVM.
285 ['clang==0 and use_lto==1', {
284 'cflags!': [ 286 'cflags!': [
285 '-flto', 287 '-flto',
286 '-ffat-lto-objects', 288 '-ffat-lto-objects',
287 ], 289 ],
288 }], 290 }],
289 ], 291 ],
290 }], # _toolset=="target" 292 }], # _toolset=="target"
291 ], 293 ],
292 }], # v8_target_arch=="arm" 294 }], # v8_target_arch=="arm"
293 ['v8_target_arch=="arm64"', { 295 ['v8_target_arch=="arm64"', {
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 ['v8_enable_slow_dchecks==1', { 1256 ['v8_enable_slow_dchecks==1', {
1255 'defines': [ 1257 'defines': [
1256 'ENABLE_SLOW_DCHECKS', 1258 'ENABLE_SLOW_DCHECKS',
1257 ], 1259 ],
1258 }], 1260 }],
1259 ], # conditions 1261 ], # conditions
1260 }, # Release 1262 }, # Release
1261 }, # configurations 1263 }, # configurations
1262 }, # target_defaults 1264 }, # target_defaults
1263 } 1265 }
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