File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -148,17 +148,9 @@ class Sdk {
148
148
if (! Directory (snapshotsDir).existsSync ()) {
149
149
// This is the less common case where the user is in
150
150
// the checked out Dart SDK, and is executing `dart` via:
151
- // ./out/ReleaseX64/dart ...
152
- // We confirm in a similar manner with the gen directory existence
153
- // and then return the correct sdk path:
154
- final altPath = path.absolute (path.dirname (Platform .resolvedExecutable));
155
- final genPath = path.join (altPath, 'gen' );
156
- if (Directory (genPath).existsSync ()) {
157
- sdkPath = altPath;
158
- runFromBuildRoot = true ;
159
- }
160
- // If that snapshot dir does not exist either,
161
- // we use the first guess anyway.
151
+ // ./out/ReleaseX64/dart ... or in google3.
152
+ sdkPath = path.absolute (path.dirname (Platform .resolvedExecutable));
153
+ runFromBuildRoot = true ;
162
154
}
163
155
164
156
// Defer to [Runtime] for the version.
You can’t perform that action at this time.
0 commit comments