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

Issue 835633003: Enable libc++ on Android (Closed)

Created:
5 years, 11 months ago by jdduke (slow)
Modified:
5 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, android-webview-reviews_chromium.org, yfriedman+watch_chromium.org, klundberg+watch_chromium.org, erikwright+watch_chromium.org, jbudorick+watch_chromium.org, jshin+watch_chromium.org, andrewhsieh, Takashi Toyoshima, Torne, Tom Hudson, danakj, reveman, vmpstr, hans
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable libc++ on Android Switch Chrome on Android to use libc++ instead of stlport. WebView AOSP builds will continue to use stlport for the time being. Note that this change is exploratory, and likely to be reverted before branch point (ensuring WebView and Chrome remain in lockstep with respect to standard library dependencies). BUG=427718 TBR=cpu@chromium.org Committed: https://crrev.com/8681920fa22ded465054301ce96657a4ddaf2a04 Cr-Commit-Position: refs/heads/master@{#315085}

Patch Set 1 #

Patch Set 2 : Fix compile #

Patch Set 3 : Working build #

Patch Set 4 : Rebase with fixed AOSP dependency #

Patch Set 5 : Rebase #

Patch Set 6 : Fix clang #

Patch Set 7 : Fix spdy test... still not sure what's going on with positional parameters #

Patch Set 8 : Rebase #

Patch Set 9 : libc++ for non-AOSP on Android #

Patch Set 10 : USE_STLPORT for aosp #

Patch Set 11 : Really fix AOSP #

Total comments: 3

Patch Set 12 : Rebase #

Patch Set 13 : Rebase to friending fixes #

Total comments: 14

Patch Set 14 : Test GN #

Patch Set 15 : Rebased to positional param revert #

Total comments: 6

Patch Set 16 : Code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -88 lines) Patch
M android_webview/native/aw_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -1 line 0 comments Download
M base/android/jni_array.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -2 lines 0 comments Download
M base/containers/hash_tables.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -3 lines 0 comments Download
M base/strings/string_util.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -4 lines 0 comments Download
M build/android/setup.gyp View 1 chunk +1 line, -1 line 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +18 lines, -18 lines 0 comments Download
M build/config/android/config.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -8 lines 0 comments Download
M build/config/compiler/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +24 lines, -35 lines 0 comments Download
M net/base/net_util_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -5 lines 0 comments Download
M third_party/mesa/mesa.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -7 lines 0 comments Download
M third_party/re2/patches/re2-libcxx.patch View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/re2/util/util.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M tools/android/run_pie/run_pie.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -2 lines 0 comments Download
M tools/clang/scripts/update.sh View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 64 (16 generated)
jdduke (slow)
Looks like the remaining failure is for aosp from within Skia (see below). I recall ...
5 years, 11 months ago (2015-01-07 01:05:00 UTC) #1
danalbert
On 2015/01/07 01:05:00, jdduke wrote: > Looks like the remaining failure is for aosp from ...
5 years, 11 months ago (2015-01-07 01:17:41 UTC) #2
chromium-reviews
Indeed, the headers in prebuilts/ndk is out of sync. https://android-review.googlesource.com/#/c/121981 should fix it. The process ...
5 years, 11 months ago (2015-01-07 10:19:47 UTC) #3
Torne
On 2015/01/07 10:19:47, chromium-reviews wrote: > Indeed, the headers in prebuilts/ndk is out of sync. ...
5 years, 11 months ago (2015-01-07 10:39:03 UTC) #4
chromium-reviews
It's merged now. Thanks! On Wed, Jan 7, 2015 at 6:39 PM, <torne@chromium.org> wrote: > ...
5 years, 11 months ago (2015-01-07 11:32:44 UTC) #5
jdduke (slow)
On 2015/01/07 11:32:44, chromium-reviews wrote: > It's merged now. Thanks! Thank you! Rolled in with ...
5 years, 11 months ago (2015-01-07 19:46:15 UTC) #6
jdduke (slow)
Making progress: In file included from external/chromium_org/base/atomicops_internals_portable.h:35:0, from external/chromium_org/base/atomicops.h:178, from external/chromium_org/base/atomic_ref_count.h:14, from external/chromium_org/base/memory/ref_counted.h:11, from external/chromium_org/gpu/command_buffer/common/buffer.h:9, ...
5 years, 11 months ago (2015-01-07 20:27:31 UTC) #7
Torne
On 2015/01/07 20:27:31, jdduke wrote: > Making progress: > > In file included from > ...
5 years, 11 months ago (2015-01-08 11:07:30 UTC) #8
Torne
On 2015/01/08 11:07:30, Torne wrote: > On 2015/01/07 20:27:31, jdduke wrote: > > Making progress: ...
5 years, 11 months ago (2015-01-08 11:09:47 UTC) #9
chromium-reviews
https://android-review.googlesource.com/#/c/122290 under verification updates prebuilts/ndk llvm-libc++ to NDK r10d with GCC/atomic support. This is closer ...
5 years, 11 months ago (2015-01-08 12:06:50 UTC) #10
jdduke (slow)
On 2015/01/08 12:06:50, chromium-reviews wrote: > https://android-review.googlesource.com/#/c/122290 under verification > updates prebuilts/ndk llvm-libc++ to NDK ...
5 years, 11 months ago (2015-01-08 22:20:46 UTC) #11
jdduke (slow)
With the landing of https://codereview.chromium.org/846633003/, I think we'll be very close to a functional libc++ ...
5 years, 11 months ago (2015-01-14 00:01:16 UTC) #13
jamesr
On 2015/01/14 00:01:16, jdduke wrote: > With the landing of https://codereview.chromium.org/846633003/, I think we'll be ...
5 years, 11 months ago (2015-01-14 00:04:07 UTC) #14
pasko
On 2015/01/14 00:04:07, jamesr wrote: > On 2015/01/14 00:01:16, jdduke wrote: > > With the ...
5 years, 11 months ago (2015-01-14 01:17:24 UTC) #15
jdduke (slow)
On 2015/01/14 01:17:24, pasko wrote: > On 2015/01/14 00:04:07, jamesr wrote: > > On 2015/01/14 ...
5 years, 11 months ago (2015-01-14 01:25:13 UTC) #16
jdduke (slow)
Still hitting some snags on aosp. Atomics look good now, but Skia compilation fails with: ...
5 years, 11 months ago (2015-01-14 22:04:34 UTC) #17
chromium-reviews
SkFontHost_FreeType_common.cpp in aosp lunch aosp_arm-eng compile w/o problem. I replace "-I external/libcxx/include" with "-I prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/libcxx/include" ...
5 years, 11 months ago (2015-01-15 21:50:30 UTC) #18
jdduke (slow)
torne@, tomhudson@: Is there perhaps some Skia/AOSP deps wizardry that needs to happen here?
5 years, 11 months ago (2015-01-15 23:42:41 UTC) #19
jdduke (slow)
thakis@: The latest patchset accommodates libc++ for Chromium Android builds, and stlport for AOSP builds. ...
5 years, 10 months ago (2015-01-29 22:44:14 UTC) #28
jamesr
Hmm, those cc tests depend on std::bitset<> which isn't a terribly common data structure so ...
5 years, 10 months ago (2015-01-29 22:48:40 UTC) #29
Nico
On 2015/01/29 22:44:14, jdduke wrote: > thakis@: The latest patchset accommodates libc++ for Chromium Android ...
5 years, 10 months ago (2015-01-29 22:48:54 UTC) #30
jdduke (slow)
On 2015/01/29 22:48:54, Nico wrote: > On 2015/01/29 22:44:14, jdduke wrote: > > thakis@: The ...
5 years, 10 months ago (2015-01-29 22:50:36 UTC) #31
Nico
https://codereview.chromium.org/835633003/diff/340001/net/base/address_tracker_linux_unittest.cc File net/base/address_tracker_linux_unittest.cc (right): https://codereview.chromium.org/835633003/diff/340001/net/base/address_tracker_linux_unittest.cc#newcode126 net/base/address_tracker_linux_unittest.cc:126: // GCC + libc++ friending issues on Android. Is ...
5 years, 10 months ago (2015-01-29 22:51:33 UTC) #32
jdduke (slow)
https://codereview.chromium.org/835633003/diff/340001/net/base/address_tracker_linux_unittest.cc File net/base/address_tracker_linux_unittest.cc (right): https://codereview.chromium.org/835633003/diff/340001/net/base/address_tracker_linux_unittest.cc#newcode126 net/base/address_tracker_linux_unittest.cc:126: // GCC + libc++ friending issues on Android. On ...
5 years, 10 months ago (2015-01-29 22:56:37 UTC) #33
Nico
On Thu, Jan 29, 2015 at 2:56 PM, <jdduke@chromium.org> wrote: > > https://codereview.chromium.org/835633003/diff/340001/net/ > base/address_tracker_linux_unittest.cc ...
5 years, 10 months ago (2015-01-29 22:57:49 UTC) #34
Fabrice (no longer in Chrome)
On 2015/01/29 22:56:37, jdduke wrote: > https://codereview.chromium.org/835633003/diff/340001/net/base/address_tracker_linux_unittest.cc > File net/base/address_tracker_linux_unittest.cc (right): > > https://codereview.chromium.org/835633003/diff/340001/net/base/address_tracker_linux_unittest.cc#newcode126 > ...
5 years, 10 months ago (2015-01-29 22:57:56 UTC) #35
jdduke (slow)
On 2015/01/29 22:57:49, Nico wrote: > It's here: https://chromium-review.googlesource.com/#/c/243891/ looks like > it didn't land ...
5 years, 10 months ago (2015-01-29 23:02:45 UTC) #36
jdduke (slow)
On 2015/01/29 22:50:36, jdduke wrote: > On 2015/01/29 22:48:54, Nico wrote: > > On 2015/01/29 ...
5 years, 10 months ago (2015-01-30 00:33:48 UTC) #37
jdduke (slow)
So, it looks like all scheduled task sets run to completion (calling DidFinishRunningTileTasks), but not ...
5 years, 10 months ago (2015-01-30 01:27:25 UTC) #38
vmiura
On 2015/01/30 01:27:25, jdduke wrote: > So, it looks like all scheduled task sets run ...
5 years, 10 months ago (2015-01-30 05:27:38 UTC) #39
jdduke (slow)
On 2015/01/30 05:27:38, vmiura wrote: > On 2015/01/30 01:27:25, jdduke wrote: > > Victor, can ...
5 years, 10 months ago (2015-01-30 17:26:26 UTC) #40
jdduke (slow)
thakis@: Thoughts on the latest patchset? I've removed the workarounds for the two files (spdy_prefixed_buffer_reader_test.cc ...
5 years, 10 months ago (2015-02-04 00:15:53 UTC) #42
Fabrice (no longer in Chrome)
Thanks a lot for taking over! Bunch of comments, mostly nits. https://codereview.chromium.org/835633003/diff/400001/base/containers/hash_tables.h File base/containers/hash_tables.h (left): ...
5 years, 10 months ago (2015-02-04 13:24:23 UTC) #43
jdduke (slow)
https://codereview.chromium.org/835633003/diff/400001/base/containers/hash_tables.h File base/containers/hash_tables.h (left): https://codereview.chromium.org/835633003/diff/400001/base/containers/hash_tables.h#oldcode87 base/containers/hash_tables.h:87: #if !defined(OS_ANDROID) On 2015/02/04 13:24:22, Fabrice wrote: > Doesn't ...
5 years, 10 months ago (2015-02-05 18:37:15 UTC) #44
jdduke (slow)
OK, rebased to the positional parameter revert. Nico, could you take a look? +boliu for ...
5 years, 10 months ago (2015-02-06 17:05:02 UTC) #46
boliu
On 2015/02/06 17:05:02, jdduke wrote: > OK, rebased to the positional parameter revert. Nico, could ...
5 years, 10 months ago (2015-02-06 17:14:33 UTC) #47
Nico
lgtm. Much excite! (cc hans update.sh change fyi) https://codereview.chromium.org/835633003/diff/440001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/835633003/diff/440001/build/common.gypi#newcode4662 build/common.gypi:4662: '-latomic', ...
5 years, 10 months ago (2015-02-06 17:17:19 UTC) #48
Fabrice (no longer in Chrome)
LGTM thanks a lot! https://codereview.chromium.org/835633003/diff/440001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (left): https://codereview.chromium.org/835633003/diff/440001/build/config/compiler/BUILD.gn#oldcode577 build/config/compiler/BUILD.gn:577: "gcc", On 2015/02/06 17:17:19, Nico ...
5 years, 10 months ago (2015-02-06 17:28:52 UTC) #49
jdduke (slow)
https://codereview.chromium.org/835633003/diff/440001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/835633003/diff/440001/build/common.gypi#newcode4662 build/common.gypi:4662: '-latomic', On 2015/02/06 17:17:19, Nico wrote: > (is this ...
5 years, 10 months ago (2015-02-06 17:38:38 UTC) #51
Nico
lgtm, ship it :-)
5 years, 10 months ago (2015-02-06 17:39:43 UTC) #52
jdduke (slow)
+davidben@ for net/ +piman@ for third_party/mesa/
5 years, 10 months ago (2015-02-06 17:41:59 UTC) #54
davidben
net lgtm!
5 years, 10 months ago (2015-02-06 17:43:55 UTC) #55
jdduke (slow)
+cpu for third_party/.
5 years, 10 months ago (2015-02-06 17:48:10 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/835633003/460001
5 years, 10 months ago (2015-02-06 17:49:25 UTC) #59
commit-bot: I haz the power
Committed patchset #16 (id:460001)
5 years, 10 months ago (2015-02-06 19:33:15 UTC) #60
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/8681920fa22ded465054301ce96657a4ddaf2a04 Cr-Commit-Position: refs/heads/master@{#315085}
5 years, 10 months ago (2015-02-06 19:33:53 UTC) #61
piman
LGTM for mesa. Exciting!
5 years, 10 months ago (2015-02-06 21:46:01 UTC) #63
jam
5 years, 10 months ago (2015-02-07 03:25:59 UTC) #64
Message was sent while issue was closed.
A revert of this CL (patchset #16 id:460001) has been created in
https://codereview.chromium.org/903323002/ by jam@chromium.org.

The reason for reverting is: Slows down the slowest bot on CQ by 20 minutes.

BUG=456396.

Powered by Google App Engine
This is Rietveld 408576698