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

Issue 1160793004: Resolve the executable path on Mac OS when sym-linked (Closed)

Created:
5 years, 6 months ago by Søren Gjesse
Modified:
5 years, 6 months ago
Reviewers:
kustermann
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Resolve the executable path on Mac OS when sym-linked Also resolve its directory if symlinked. This helps to locate the Dart SDK (if any) from the path of the dart executable. On Linux the use of /proc/self/exe already takes care of this. R=kustermann@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/d5a34bd6d2bf3c05023214e1cf387943929b56d4

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed review comments #

Total comments: 1

Patch Set 3 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M runtime/bin/platform_macos.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M tests/standalone/standalone.status View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Søren Gjesse
5 years, 6 months ago (2015-06-04 13:10:13 UTC) #1
kustermann
https://codereview.chromium.org/1160793004/diff/1/runtime/bin/platform_macos.cc File runtime/bin/platform_macos.cc (right): https://codereview.chromium.org/1160793004/diff/1/runtime/bin/platform_macos.cc#newcode121 runtime/bin/platform_macos.cc:121: } So this only handles symlinks to the binary ...
5 years, 6 months ago (2015-06-08 08:22:26 UTC) #2
Søren Gjesse
PTAL https://codereview.chromium.org/1160793004/diff/1/runtime/bin/platform_macos.cc File runtime/bin/platform_macos.cc (right): https://codereview.chromium.org/1160793004/diff/1/runtime/bin/platform_macos.cc#newcode121 runtime/bin/platform_macos.cc:121: } On 2015/06/08 08:22:25, kustermann wrote: > So ...
5 years, 6 months ago (2015-06-09 10:46:48 UTC) #3
kustermann
LGTM https://codereview.chromium.org/1160793004/diff/20001/runtime/bin/platform_macos.cc File runtime/bin/platform_macos.cc (right): https://codereview.chromium.org/1160793004/diff/20001/runtime/bin/platform_macos.cc#newcode95 runtime/bin/platform_macos.cc:95: // Return the canonnical path as the returned ...
5 years, 6 months ago (2015-06-09 10:49:47 UTC) #4
Søren Gjesse
Committed patchset #3 (id:40001) manually as d5a34bd6d2bf3c05023214e1cf387943929b56d4 (presubmit successful).
5 years, 6 months ago (2015-06-09 14:13:07 UTC) #5
nweiz
5 years, 6 months ago (2015-06-09 19:12:49 UTC) #6
Message was sent while issue was closed.
On 2015/06/09 14:13:07, Søren Gjesse wrote:
> Committed patchset #3 (id:40001) manually as
> d5a34bd6d2bf3c05023214e1cf387943929b56d4 (presubmit successful).

Can we cherry-pick this into trunk?

Powered by Google App Engine
This is Rietveld 408576698