Commit 0e8f26dd authored by Chinmay Garde's avatar Chinmay Garde

Use the correct host toolchain when building from a local engine checkout on Mac. (#3956)

parent 0f3bd3ae
...@@ -71,7 +71,9 @@ String buildAotSnapshot( ...@@ -71,7 +71,9 @@ String buildAotSnapshot(
entryPointsDir = path.join(engineSrc, 'sky', 'engine', 'bindings'); entryPointsDir = path.join(engineSrc, 'sky', 'engine', 'bindings');
String engineOut = tools.getEngineArtifactsDirectory( String engineOut = tools.getEngineArtifactsDirectory(
TargetPlatform.android_arm, buildMode).path; TargetPlatform.android_arm, buildMode).path;
genSnapshot = path.join(engineOut, 'clang_x86', 'gen_snapshot');
String host32BitToolchain = getCurrentHostPlatform() == HostPlatform.darwin_x64 ? 'clang_i386' : 'clang_x86';
genSnapshot = path.join(engineOut, host32BitToolchain, 'gen_snapshot');
} else { } else {
String artifactsDir = tools.getEngineArtifactsDirectory( String artifactsDir = tools.getEngineArtifactsDirectory(
TargetPlatform.android_arm, buildMode).path; TargetPlatform.android_arm, buildMode).path;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment