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

Issue 24352006: Look for strip in DT_TOOLCHAIN_DIR (Closed)

Created:
7 years, 3 months ago by Mark Mentovai
Modified:
7 years, 2 months ago
Reviewers:
Nico
CC:
chromium-reviews
Visibility:
Public.

Description

Run strip via xcrun. In Xcode 5, strip is no longer in SYSTEM_DEVELOPER_BIN_DIR. It is only in DT_TOOLCHAIN_DIR. I also checked Xcode 4.6.1 and found that DT_TOOLCHAIN_DIR was also set there, and strip is in both SYSTEM_DEVELOPER_BIN_DIR and DT_TOOLCHAIN_DIR in that version. Environment variables as set when Xcode is installed at /Applications/Xcode.app: SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin DT_TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefa ult.xctoolchain xcrun should be able to find strip without having to resort to manual environment interpretation. R=thakis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=227787

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -7 lines) Patch
M build/mac/strip_save_dsym View 1 2 3 4 1 chunk +1 line, -7 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Mark Mentovai
7 years, 3 months ago (2013-09-24 18:43:30 UTC) #1
Nico
Is it better to run `xcrun strip` instead?
7 years, 3 months ago (2013-09-24 18:44:04 UTC) #2
Mark Mentovai
I’m still worried about finding xcrun, but it appears that in Xcode 5, that’s at ...
7 years, 3 months ago (2013-09-24 18:49:16 UTC) #3
Nico
On Tue, Sep 24, 2013 at 11:49 AM, <mark@chromium.org> wrote: > I’m still worried about ...
7 years, 3 months ago (2013-09-24 18:50:23 UTC) #4
Mark Mentovai
Even if there are no command-line tools installed?
7 years, 3 months ago (2013-09-24 18:51:50 UTC) #5
Nico
On Tue, Sep 24, 2013 at 11:51 AM, <mark@chromium.org> wrote: > Even if there are ...
7 years, 3 months ago (2013-09-24 18:56:39 UTC) #6
Mark Mentovai
Me neither, that’s perhaps why I assumed that xcrun was part of the command-line tools ...
7 years, 3 months ago (2013-09-24 19:04:24 UTC) #7
Mark Mentovai
And this might be the thing we’ve seen where xcrun doesn’t actually work until you’ve ...
7 years, 3 months ago (2013-09-24 19:08:22 UTC) #8
Mark Mentovai
Installing the 10.9 GM was a chance to look at this on a virgin machine. ...
7 years, 2 months ago (2013-10-07 20:11:24 UTC) #9
Nico
lgtm
7 years, 2 months ago (2013-10-07 20:12:32 UTC) #10
Mark Mentovai
I had to back the xcrun version out (https://codereview.chromium.org/26235007/) because xcrun is influenced badly by ...
7 years, 2 months ago (2013-10-08 16:37:23 UTC) #11
Nico
On Tue, Oct 8, 2013 at 9:37 AM, <mark@chromium.org> wrote: > I had to back ...
7 years, 2 months ago (2013-10-08 16:39:23 UTC) #12
Mark Mentovai
That’s hairy: we set SDKROOT because Xcode does it.
7 years, 2 months ago (2013-10-08 16:40:58 UTC) #13
Nico
Xcode sets it to a path? On Tue, Oct 8, 2013 at 9:40 AM, <mark@chromium.org> ...
7 years, 2 months ago (2013-10-08 16:43:59 UTC) #14
Mark Mentovai
Yes, always.
7 years, 2 months ago (2013-10-08 16:47:26 UTC) #15
Mark Mentovai
This is how all of our framework links work. We always say something like 'link_settings': ...
7 years, 2 months ago (2013-10-08 16:49:48 UTC) #16
Nico
Ah, I guess I confused SDKROOT-the-xcode-setting and SDKROOT-the-envvar-set-by-the-build-system. From what I understand, the user is ...
7 years, 2 months ago (2013-10-08 16:53:19 UTC) #17
Mark Mentovai
Correct. But it also works to set SDKROOT to a path, even in Xcode. It ...
7 years, 2 months ago (2013-10-08 16:57:20 UTC) #18
Nico
Does xcrun work with a path to the 10.7 (or 10.8) sdk? On Tue, Oct ...
7 years, 2 months ago (2013-10-08 16:58:43 UTC) #19
Mark Mentovai
Yup.
7 years, 2 months ago (2013-10-08 17:42:15 UTC) #20
Nico
Ok, cool. Then lgtm with a comment with a TODO to use xcrun once we're ...
7 years, 2 months ago (2013-10-08 17:54:28 UTC) #21
Mark Mentovai
No can do. By the time we move off of the 10.6 SDK, we’ll probably ...
7 years, 2 months ago (2013-10-08 18:12:51 UTC) #22
Nico
On 2013/10/08 18:12:51, Mark Mentovai wrote: > No can do. By the time we move ...
7 years, 2 months ago (2013-10-09 01:51:38 UTC) #23
Mark Mentovai
It works if the SDK lives inside Xcode (/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs), symlink OK, but I didn’t think ...
7 years, 2 months ago (2013-10-09 13:31:15 UTC) #24
Nico
On Wed, Oct 9, 2013 at 6:31 AM, <mark@chromium.org> wrote: > It works if the ...
7 years, 2 months ago (2013-10-09 16:18:10 UTC) #25
Mark Mentovai
I stuck that in patch set 4, then I checked the bot slave setup scripts ...
7 years, 2 months ago (2013-10-09 19:28:11 UTC) #26
Nico
7 years, 2 months ago (2013-10-09 19:30:10 UTC) #27
On 2013/10/09 19:28:11, Mark Mentovai wrote:
> I stuck that in patch set 4, then I checked the bot slave setup scripts and
> found that they currently do stick the SDKs inside the right place in
Xcode.app
> for this to work, so xcrun should be OK. Patch set 5 just goes back to using
> xcrun again, which is what had been backed out.
> 
> This has been instructive!
> 
> So assuming that this “trys” OK, we’ll just go with xcrun now, and if any
> individual developer builds break, we can tell them to put their SDK inside
the
> right location in Xcode.app. That probably won’t actually happen to anyone,
> because most developers are just using the 10.7 SDK or whatever their
Xcode.app
> has in it via the SDK finder logic you added, since they aren’t doing official
> builds that require a specific SDK version.

Cool! Maybe tweak the Cl description before landing then.

Powered by Google App Engine
This is Rietveld 408576698