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

Issue 1275133004: Fallback to '.tbd' for system missing '.dylib'. (Closed)

Created:
5 years, 4 months ago by sdefresne
Modified:
5 years, 3 months ago
CC:
gyp-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/gyp.git@master
Target Ref:
refs/heads/master
Project:
gyp
Visibility:
Public.

Description

Fallback to '.tbd' for system missing '.dylib'. With Xcode 7 the '.dylib' for system libraries are no longer present but instead only '.tbd' are shipped maybe in an effort to reduce the size of the SDK download. Change XcodeSettings._AdjustLibrary() to look for a '.tbd' file for system libraries (those whose path starts by "$(SDKROOT)"). Only do the substitution if the '.dylib' cannot be found and a '.tbd' file with the same path exists. BUG=517914 R=justincohen@chromium.org, mark@chromium.org Committed: https://chromium.googlesource.com/external/gyp/+/01528c7244837168a1c80f06ff60fa5a9793c824

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove double replace() and add a TODO(sdefresne) #

Patch Set 3 : Remove double os.path.exists() #

Patch Set 4 : Rebase #

Patch Set 5 : Update comment now that Xcode 7 GM is available #

Patch Set 6 : Address grammar errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -1 line) Patch
M pylib/gyp/xcode_emulation.py View 1 2 3 4 5 1 chunk +17 lines, -1 line 0 comments Download

Messages

Total messages: 20 (3 generated)
sdefresne
Please take a look. I've tried this change and I'm able to build Chromium with ...
5 years, 4 months ago (2015-08-10 18:35:57 UTC) #2
Mark Mentovai
I think Nico should review this. I had comparatively little to do with xcode_emulation.py. It ...
5 years, 4 months ago (2015-08-10 18:41:44 UTC) #4
sdefresne
https://codereview.chromium.org/1275133004/diff/1/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/1275133004/diff/1/pylib/gyp/xcode_emulation.py#newcode1042 pylib/gyp/xcode_emulation.py:1042: l = l.replace('$(SDKROOT)', sdk_root) On 2015/08/10 at 18:41:44, Mark ...
5 years, 4 months ago (2015-08-11 07:43:00 UTC) #5
Mark Mentovai
LGTM, but again, I think Nico should see this too.
5 years, 4 months ago (2015-08-11 21:54:11 UTC) #6
Nico
Do we have to support building with Xcode beta versions? Or can we wait and ...
5 years, 4 months ago (2015-08-11 21:57:51 UTC) #7
justincohen
Do we have to refer to dylib at all? If I recall, we worked around ...
5 years, 4 months ago (2015-08-12 02:58:02 UTC) #9
Mark Mentovai
That’s kind of a hackaround. Again, this is a known problem in the Xcode beta. ...
5 years, 4 months ago (2015-08-12 03:11:59 UTC) #10
sdefresne
On 2015/08/12 at 03:11:59, mark wrote: > That’s kind of a hackaround. > > Again, ...
5 years, 4 months ago (2015-08-12 06:19:23 UTC) #11
sdefresne
On 2015/08/12 at 06:19:23, sdefresne wrote: > On 2015/08/12 at 03:11:59, mark wrote: > > ...
5 years, 3 months ago (2015-09-10 10:16:18 UTC) #12
Mark Mentovai
It doesn’t fix it. What it does, for /usr/lib libraries, is do -L/usr/lib -lname. I ...
5 years, 3 months ago (2015-09-10 12:54:10 UTC) #13
sdefresne
On 2015/09/10 at 12:54:10, mark wrote: > It doesn’t fix it. What it does, for ...
5 years, 3 months ago (2015-09-10 14:53:48 UTC) #14
sdefresne
On 2015/09/10 at 14:53:48, sdefresne wrote: > On 2015/09/10 at 12:54:10, mark wrote: > > ...
5 years, 3 months ago (2015-09-10 14:54:35 UTC) #15
sdefresne
I've updated the comment at the recommendation of justincohen (offline). mark, does this comment looks ...
5 years, 3 months ago (2015-09-10 15:13:19 UTC) #16
justincohen
lgtm
5 years, 3 months ago (2015-09-10 15:21:53 UTC) #17
sdefresne
thakis: ping?
5 years, 3 months ago (2015-09-10 15:22:42 UTC) #18
Mark Mentovai
Committed patchset #6 (id:100001) manually as 01528c7244837168a1c80f06ff60fa5a9793c824 (presubmit successful).
5 years, 3 months ago (2015-09-18 22:19:04 UTC) #19
Mark Mentovai
5 years, 3 months ago (2015-09-18 22:19:35 UTC) #20
Message was sent while issue was closed.
I talked to Nico and he wasn’t against this. Now that Xcode 7 has been released,
I landed it.

Powered by Google App Engine
This is Rietveld 408576698