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

Issue 1127993006: Define _FORTIFY_SOURCE=2 under the same conditions in gn as gyp. (Closed)

Created:
5 years, 7 months ago by Sam McNally
Modified:
5 years, 7 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@gn-tsan
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Define _FORTIFY_SOURCE=2 under the same conditions in gn as gyp. Committed: https://crrev.com/614906ed827f53299ce6de6bbd66c63b55d313ff Cr-Commit-Position: refs/heads/master@{#330685}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M build/config/compiler/BUILD.gn View 1 chunk +1 line, -1 line 3 comments Download

Messages

Total messages: 11 (3 generated)
Sam McNally
The corresponding gyp is at https://code.google.com/p/chromium/codesearch/#chromium/src/build/common.gypi&l=3484
5 years, 7 months ago (2015-05-19 08:19:35 UTC) #2
Dirk Pranke
https://codereview.chromium.org/1127993006/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1127993006/diff/1/build/config/compiler/BUILD.gn#newcode665 build/config/compiler/BUILD.gn:665: if (!using_sanitizer && (!is_linux || !is_clang || is_official_build)) { ...
5 years, 7 months ago (2015-05-19 19:53:30 UTC) #3
Sam McNally
https://codereview.chromium.org/1127993006/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1127993006/diff/1/build/config/compiler/BUILD.gn#newcode665 build/config/compiler/BUILD.gn:665: if (!using_sanitizer && (!is_linux || !is_clang || is_official_build)) { ...
5 years, 7 months ago (2015-05-20 01:40:29 UTC) #4
Dirk Pranke
My concern is that the comments may have accreted over time and maybe don't make ...
5 years, 7 months ago (2015-05-20 02:00:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1127993006/1
5 years, 7 months ago (2015-05-20 02:48:47 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 7 months ago (2015-05-20 02:53:36 UTC) #9
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/614906ed827f53299ce6de6bbd66c63b55d313ff Cr-Commit-Position: refs/heads/master@{#330685}
5 years, 7 months ago (2015-05-20 02:54:25 UTC) #10
Nico
5 years, 7 months ago (2015-05-21 19:19:55 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/1127993006/diff/1/build/config/compiler/BUILD.gn
File build/config/compiler/BUILD.gn (right):

https://codereview.chromium.org/1127993006/diff/1/build/config/compiler/BUILD...
build/config/compiler/BUILD.gn:665: if (!using_sanitizer && (!is_linux ||
!is_clang || is_official_build)) {
On 2015/05/20 01:40:29, Sam McNally wrote:
> On 2015/05/19 19:53:30, Dirk Pranke wrote:
> > I can see this matches the logic in GYP, but trying to parse this to figure
> out
> > when this actually will get applied is a little weird:
> > 
> > !is_linux => mac or android
> > !is_clang => android
> > 
> > so we want this on android or on official (non-win) builds; is that right?
> This
> > seems like a confusing way to write this, and it's not clear to me whether
we
> > actually want to set this in clang builds (which most of the official builds
> > will be?)
> 
> My understanding from the comments is that we want this always on for
> non-Windows, but clang doesn't work with this on recent versions of linux.
That
> special case then has its own special case because the bots used for official
> builds are running Ubuntu 12.04 which is old enough to avoid the clang bug.

Yes, this is correct.

> How about !(is_linux && is_clang && !is_official_build) instead? Or one step
> further: !(using_sanitizer || (is_linux && is_clang && !is_official_build)).
> These make the "on by default unless..." intent a bit clearer.

Powered by Google App Engine
This is Rietveld 408576698