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

Issue 1408273003: GN: nacl_defines: Drop _BSD_SOURCE, _DEFAULT_SOURCE; conditionalize on OS (Closed)

Created:
5 years, 2 months ago by Roland McGrath
Modified:
5 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GN: nacl_defines: Drop _BSD_SOURCE, _DEFAULT_SOURCE; conditionalize on OS Drop _BSD_SOURCE and _DEFAULT_SOURCE defines, which are redundant with _GNU_SOURCE on Linux. This brings the set affecting Linux in line with the standalone NaCl build. Conditionalize these defines to affect only Linux, Android, and NaCl toolchains. That is, none of these are used on Mac (or Windows). This makes the GN build consistent with the GYP and Scons builds. On Mac, defining _POSIX_C_SOURCE (without also defining _DARWIN_C_SOURCE) makes the system headers disable some symbols that NaCl sources need. BUG=545236 R=dpranke@chromium.org, mseaborn@chromium.org Committed: https://crrev.com/2640ff9632d74c85964e100b34811f90569fe510 Cr-Commit-Position: refs/heads/master@{#355327}

Patch Set 1 #

Total comments: 1

Patch Set 2 : conditionalize on os; no _DARWIN_C_SOURCE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M build/config/nacl/BUILD.gn View 1 1 chunk +8 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Roland McGrath
5 years, 2 months ago (2015-10-19 23:34:22 UTC) #1
Mark Seaborn
LGTM https://codereview.chromium.org/1408273003/diff/1/build/config/nacl/BUILD.gn File build/config/nacl/BUILD.gn (right): https://codereview.chromium.org/1408273003/diff/1/build/config/nacl/BUILD.gn#newcode13 build/config/nacl/BUILD.gn:13: "_DARWIN_C_SOURCE=1", It seems like some of the reasoning ...
5 years, 2 months ago (2015-10-20 00:21:00 UTC) #2
Dirk Pranke
Adding command line defines that aren't even needed seems like source of confusion and potentially ...
5 years, 2 months ago (2015-10-20 01:01:00 UTC) #3
Dirk Pranke
On 2015/10/20 01:01:00, Dirk Pranke wrote: > Adding command line defines that aren't even needed ...
5 years, 2 months ago (2015-10-20 01:01:22 UTC) #4
Mark Seaborn
On 19 October 2015 at 18:01, <dpranke@chromium.org> wrote: > Adding command line defines that aren't ...
5 years, 2 months ago (2015-10-20 01:20:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408273003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408273003/20001
5 years, 2 months ago (2015-10-21 17:14:38 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-10-21 17:40:31 UTC) #10
commit-bot: I haz the power
5 years, 2 months ago (2015-10-21 17:41:32 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2640ff9632d74c85964e100b34811f90569fe510
Cr-Commit-Position: refs/heads/master@{#355327}

Powered by Google App Engine
This is Rietveld 408576698