Skip to content

Commit 0e8f26d

Browse files
committed
Use the correct host toolchain when building from a local engine checkout on Mac. (flutter#3956)
1 parent 0f3bd3a commit 0e8f26d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/flutter_tools/lib/src/commands/build_aot.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ String buildAotSnapshot(
7171
entryPointsDir = path.join(engineSrc, 'sky', 'engine', 'bindings');
7272
String engineOut = tools.getEngineArtifactsDirectory(
7373
TargetPlatform.android_arm, buildMode).path;
74-
genSnapshot = path.join(engineOut, 'clang_x86', 'gen_snapshot');
74+
75+
String host32BitToolchain = getCurrentHostPlatform() == HostPlatform.darwin_x64 ? 'clang_i386' : 'clang_x86';
76+
genSnapshot = path.join(engineOut, host32BitToolchain, 'gen_snapshot');
7577
} else {
7678
String artifactsDir = tools.getEngineArtifactsDirectory(
7779
TargetPlatform.android_arm, buildMode).path;

0 commit comments

Comments
 (0)