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

Issue 15405003: add a macro that really identifies glibc (Closed)

Created:
7 years, 7 months ago by Mostyn Bramley-Moore
Modified:
7 years, 7 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, Daniel Bratell, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

add a macro that really identifies glibc uClibc pretends to be glibc, so just checking for __GLIBC__ doesn't always work. Rather than check for defined(__GLIBC__) && !defined(__UCLIBC__) in multiple places, do it once and define LIBC_GLIBC if we're certain that we're really using glibc. NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201761

Patch Set 1 #

Total comments: 2

Patch Set 2 : rearrange ifdefs and leave a dlsym dance todo #

Patch Set 3 : rename GLIBC to LIBC_GLIBC to avoid collisions #

Total comments: 2

Patch Set 4 : nitpick fixup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -3 lines) Patch
M base/process_util_linux.cc View 1 2 3 2 chunks +11 lines, -3 lines 0 comments Download
M build/build_config.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Mostyn Bramley-Moore
This patch makes it simpler to check for glibc before using glibc specific features, and ...
7 years, 7 months ago (2013-05-18 06:40:15 UTC) #1
agl
https://codereview.chromium.org/15405003/diff/1/base/process_util_linux.cc File base/process_util_linux.cc (right): https://codereview.chromium.org/15405003/diff/1/base/process_util_linux.cc#newcode748 base/process_util_linux.cc:748: #if defined(GLIBC) && !defined(USE_TCMALLOC) && \ It's not clear ...
7 years, 7 months ago (2013-05-20 15:18:22 UTC) #2
Mostyn Bramley-Moore
https://codereview.chromium.org/15405003/diff/1/base/process_util_linux.cc File base/process_util_linux.cc (right): https://codereview.chromium.org/15405003/diff/1/base/process_util_linux.cc#newcode748 base/process_util_linux.cc:748: #if defined(GLIBC) && !defined(USE_TCMALLOC) && \ On 2013/05/20 15:18:22, ...
7 years, 7 months ago (2013-05-20 20:41:41 UTC) #3
agl
On 2013/05/20 20:41:41, Mostyn Bramley-Moore wrote: > You're probably right, but I think this might ...
7 years, 7 months ago (2013-05-21 14:40:20 UTC) #4
Mostyn Bramley-Moore
On 2013/05/21 14:40:20, agl wrote: > It seems clear that this isn't making the situation ...
7 years, 7 months ago (2013-05-21 14:59:48 UTC) #5
Mostyn Bramley-Moore
Renamed GLIBC to LIBC_GLIBC on Paweł's advice, to avoid collisions.
7 years, 7 months ago (2013-05-22 20:29:18 UTC) #6
jar (doing other things)
Seems reasonable... and based on agl and pawel commentary.. LGTM
7 years, 7 months ago (2013-05-22 21:27:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/15405003/10001
7 years, 7 months ago (2013-05-22 21:43:37 UTC) #8
tfarina
https://codereview.chromium.org/15405003/diff/10001/base/process_util_linux.cc File base/process_util_linux.cc (right): https://codereview.chromium.org/15405003/diff/10001/base/process_util_linux.cc#newcode833 base/process_util_linux.cc:833: // TODO: dlsym dance nit: TODO(username): please.
7 years, 7 months ago (2013-05-22 23:26:08 UTC) #9
Mostyn Bramley-Moore
https://codereview.chromium.org/15405003/diff/10001/base/process_util_linux.cc File base/process_util_linux.cc (right): https://codereview.chromium.org/15405003/diff/10001/base/process_util_linux.cc#newcode833 base/process_util_linux.cc:833: // TODO: dlsym dance On 2013/05/22 23:26:09, tfarina wrote: ...
7 years, 7 months ago (2013-05-22 23:32:16 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/15405003/33001
7 years, 7 months ago (2013-05-22 23:33:12 UTC) #11
Mostyn Bramley-Moore
Passed all the related try bots, only failing on win7_aura with an unrelated error (this ...
7 years, 7 months ago (2013-05-23 11:51:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mostynb@opera.com/15405003/33001
7 years, 7 months ago (2013-05-23 11:51:58 UTC) #13
commit-bot: I haz the power
7 years, 7 months ago (2013-05-23 12:00:11 UTC) #14
Message was sent while issue was closed.
Change committed as 201761

Powered by Google App Engine
This is Rietveld 408576698