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

Issue 1289623006: build: On Android, disable LTO for specific targets only when targeting GCC. (Closed)

Created:
5 years, 4 months ago by pcc1
Modified:
5 years, 4 months ago
CC:
chromium-reviews, jzern, vikasa, urvang, skal, rickyz+watch_chromium.org, darin-cc_chromium.org, yfriedman+watch_chromium.org, piman+watch_chromium.org, klundberg+watch_chromium.org, jbudorick+watch_chromium.org, jln+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

build: On Android, disable LTO for specific targets only when targeting GCC. The set of targets for which LTO is problematic will most likely differ between GCC and LLVM. We also need different logic for LLVM (specifically, LTO should not be disabled when building with cfi_vptr==1, as the -flto flag must be passed together with -fsanitize=cfi*); this unbreaks the build for those targets on Android when cfi_vptr==1. Also add a drive-by TODO to use -lto_library flag on Mac. BUG=469376 R=thakis@chromium.org, fdegans@chromium.org TBR=jam@chromium.org Committed: https://crrev.com/e510374e7f8b5a9ee03c10d120f582b85f5b3cf8 Cr-Commit-Position: refs/heads/master@{#345492}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove disable_lto.gypi #

Total comments: 5

Patch Set 3 : Clarify comment in build/common.gypi; add TODO to use -lto_library #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -42 lines) Patch
A + build/android/disable_gcc_lto.gypi View 1 1 chunk +2 lines, -2 lines 0 comments Download
M build/android/disable_lto.gypi View 1 1 chunk +0 lines, -20 lines 0 comments Download
M build/android/increase_size_for_speed.gypi View 1 chunk +3 lines, -3 lines 0 comments Download
M build/common.gypi View 1 2 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 chunk +1 line, -1 line 0 comments Download
M content/content.gyp View 1 chunk +1 line, -1 line 0 comments Download
M gpu/gpu.gyp View 2 chunks +2 lines, -2 lines 0 comments Download
M sandbox/linux/sandbox_linux.gypi View 1 chunk +1 line, -1 line 0 comments Download
M skia/skia.gyp View 1 chunk +1 line, -1 line 0 comments Download
M skia/skia_library_opts.gyp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libwebp/libwebp.gyp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/opus/opus.gyp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/sqlite/sqlite.gyp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (9 generated)
pcc1
5 years, 4 months ago (2015-08-14 01:23:53 UTC) #1
jam
I'm not a good reviewer for this. find someone from android team.
5 years, 4 months ago (2015-08-20 22:58:56 UTC) #2
jam
btw I'm sorry for taking so long to respond, I missed this change in my ...
5 years, 4 months ago (2015-08-20 22:59:28 UTC) #3
pcc1
fdegans: can you please take a look?
5 years, 4 months ago (2015-08-20 23:01:28 UTC) #5
Fabrice (no longer in Chrome)
https://codereview.chromium.org/1289623006/diff/1/build/android/disable_lto.gypi File build/android/disable_lto.gypi (right): https://codereview.chromium.org/1289623006/diff/1/build/android/disable_lto.gypi#newcode8 build/android/disable_lto.gypi:8: # disable_gcc_lto.gypi and remove this file. I believe there ...
5 years, 4 months ago (2015-08-20 23:07:46 UTC) #6
pcc1
https://codereview.chromium.org/1289623006/diff/1/build/android/disable_lto.gypi File build/android/disable_lto.gypi (right): https://codereview.chromium.org/1289623006/diff/1/build/android/disable_lto.gypi#newcode8 build/android/disable_lto.gypi:8: # disable_gcc_lto.gypi and remove this file. On 2015/08/20 23:07:46, ...
5 years, 4 months ago (2015-08-20 23:11:04 UTC) #7
pcc
https://codereview.chromium.org/1289623006/diff/1/build/android/disable_lto.gypi File build/android/disable_lto.gypi (right): https://codereview.chromium.org/1289623006/diff/1/build/android/disable_lto.gypi#newcode8 build/android/disable_lto.gypi:8: # disable_gcc_lto.gypi and remove this file. On 2015/08/20 23:07:46, ...
5 years, 4 months ago (2015-08-20 23:21:39 UTC) #9
Fabrice (no longer in Chrome)
lgtm
5 years, 4 months ago (2015-08-20 23:22:07 UTC) #10
pcc
jam: rubber stamp please
5 years, 4 months ago (2015-08-20 23:22:48 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1289623006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1289623006/20001
5 years, 4 months ago (2015-08-24 09:57:53 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-24 10:52:57 UTC) #15
jam
+thakis
5 years, 4 months ago (2015-08-24 14:44:58 UTC) #17
Nico
lgtm if external forces make it impossible to rename the gyp variable. Do you think ...
5 years, 4 months ago (2015-08-24 15:26:21 UTC) #18
Fabrice (no longer in Chrome)
On 2015/08/24 15:26:21, Nico wrote: > lgtm if external forces make it impossible to rename ...
5 years, 4 months ago (2015-08-24 15:31:54 UTC) #19
Nico
https://codereview.chromium.org/1289623006/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1289623006/diff/20001/build/common.gypi#newcode690 build/common.gypi:690: # use_lto_o2 has no effect. Ah, I misunderstood the ...
5 years, 4 months ago (2015-08-24 15:34:36 UTC) #20
pcc
https://codereview.chromium.org/1289623006/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1289623006/diff/20001/build/common.gypi#newcode690 build/common.gypi:690: # use_lto_o2 has no effect. On 2015/08/24 15:34:36, Nico ...
5 years, 4 months ago (2015-08-24 19:25:23 UTC) #21
Nico
lgtm, thanks.
5 years, 4 months ago (2015-08-24 19:27:49 UTC) #22
pcc1
jam: back to you
5 years, 4 months ago (2015-08-24 19:35:29 UTC) #23
Nico
I think you can TBR=jam. The changes outside of build/ are mechanical.
5 years, 4 months ago (2015-08-25 15:35:32 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1289623006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1289623006/40001
5 years, 4 months ago (2015-08-25 22:10:18 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_android/builds/46211) chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 4 months ago (2015-08-25 22:21:52 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1289623006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1289623006/40001
5 years, 4 months ago (2015-08-25 23:15:00 UTC) #31
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-08-26 00:04:04 UTC) #32
commit-bot: I haz the power
5 years, 4 months ago (2015-08-26 00:05:11 UTC) #33
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e510374e7f8b5a9ee03c10d120f582b85f5b3cf8
Cr-Commit-Position: refs/heads/master@{#345492}

Powered by Google App Engine
This is Rietveld 408576698