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

Issue 1147353003: Reland "Roll DEPS to class-dump 3.5" (Closed)

Created:
5 years, 7 months ago by lliabraa
Modified:
5 years, 6 months ago
Reviewers:
erikchen, Nico, justincohen
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland "Roll DEPS to class-dump 3.5" Removes some build warnings. Moves the class-dump repo to a github auto-mirror instead of a mirror that needs to be manually updated. This also requires that the class-dump.gyp file move from the third-party repo into the main source tree. Note that the file structure of the class-dump source changed so the .gyp had to be updated. For comparison, the old .class-dump.gyp can be found at https://chromium.googlesource.com/chromium/deps/class-dump/+/master/class-dump.gyp Original CL: https://codereview.chromium.org/1106993002 This CL ignores some warnings that occur in the Xcode build. BUG=318160

Patch Set 1 : patch that was reverted #

Patch Set 2 : ignore warnings in xcode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -2 lines) Patch
M DEPS View 1 chunk +1 line, -1 line 0 comments Download
A testing/iossim/class-dump.gyp View 1 1 chunk +204 lines, -0 lines 0 comments Download
M testing/iossim/iossim.gyp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
lliabraa
5 years, 7 months ago (2015-05-21 17:06:10 UTC) #2
justincohen
lgtm
5 years, 7 months ago (2015-05-21 17:10:13 UTC) #3
justincohen
Talked to Lane offline about using 'chromium_code': 0, instead, although it's unclear why all the ...
5 years, 7 months ago (2015-05-21 17:16:01 UTC) #4
lliabraa
When OS=ios and chromium_code=0 we set TREAT_WARNINGS_AS_ERRORS=NO. However, the iossim/class-dump code builds with OS=mac, which ...
5 years, 7 months ago (2015-05-21 18:21:19 UTC) #6
Nico
On 2015/05/21 18:21:19, lliabraa wrote: > When OS=ios and chromium_code=0 we set TREAT_WARNINGS_AS_ERRORS=NO. However, the ...
5 years, 7 months ago (2015-05-21 18:32:15 UTC) #8
lliabraa
5 years, 7 months ago (2015-05-22 17:57:02 UTC) #9
On 2015/05/21 18:32:15, Nico wrote:
> On 2015/05/21 18:21:19, lliabraa wrote:
> > When OS=ios and chromium_code=0 we set TREAT_WARNINGS_AS_ERRORS=NO. However,
> the
> > iossim/class-dump code builds with OS=mac, which only sets this flag for
> > official builds (when chromium_code=0). So just setting chromium_code=0 does
> not
> > avoid the warnings.
> > 
> > @thakis - does that mean I should land this as is (i.e. specifically
ignoring
> > warnings in class-dump that we don't care about) or do you have a better
> > suggestion that would use chromium_code?
> 
> * Chromium builds should be warning free. If that's not true in the iOS build,
> that's a bug of the iOS build. We shouldn't make it worse.
> 
> * Turning off warnings we don't care (i.e. warnings that are harmless) about
for
> third-party code is fine (see many third_party/*/*.gyp files for examples).
> there should be a short comment for each warning saying why it's ok to ignore
it
> and why it's needed (see examples)
> 
> * But making that dependent on the generator doesn't make any sense to me –
I'm
> guessing you want to check clang_xcode instead?
> 
> * Usually we put gyp files next to the project
– third_party/class-dump/foo.gyp
> would be the gyp file, third_party/class-dump/src the depsed-in code.

Yes - I tried that [1] but the bots were not able to process the change because
of the file structure of the new and old repo. See
https://code.google.com/p/chromium/issues/detail?id=481644

[1] see patch set 2 of original CL:
https://codereview.chromium.org/1106993002/#ps20001

> 
> Is Wno-arc-bridge-casts-disallowed-in-nonarc really a harmless warning we can
> just ignore?
> 
> We almost certainly want to keep Wpartial-availability enabled for all targets
> (+erikchen)

I'm guessing this is because Mac deployment target is set to 10.6 but these APIs
require 10.8. IIRC all the iOS build infra is on 10.9

> 
> Wno-objc-missing-super-calls doesn't look super harmless at first sight either
–
> maybe you could fix the warning upstream instead of suppressing it?

I agree these warnings sound dubious, but they do not affect our use case.

What I don't understand is why building with ninja does not output any warnings
but building with xcode does. The only difference I seen in the clang invocation
is the -Werror

Powered by Google App Engine
This is Rietveld 408576698