diff --git a/sky/build/flx.gni b/sky/build/flx.gni index df36f989316..806ff211f2f 100644 --- a/sky/build/flx.gni +++ b/sky/build/flx.gni @@ -48,9 +48,13 @@ template("flx") { ] } - deps = [ - "//sky/tools/sky_snapshot($host_toolchain)", - ] + deps = [] + + if (!is_ios) { + # sky_snapshot is used to create a script snapshot. iOS builds use + # a precompiled snapshot. So this dependency is redundant. + deps += [ "//sky/tools/sky_snapshot($host_toolchain)" ] + } if (defined(invoker.deps)) { deps += invoker.deps