diff --git a/BUILD.gn b/BUILD.gn index 7c566efd9dd..168a443bd95 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -107,9 +107,11 @@ group("dart2wasm_platform") { deps = [ ":runtime_precompiled", "utils/dart2wasm:compile_dart2wasm_platform", - "utils/dart2wasm:dart2wasm_asserts_snapshot", "utils/dart2wasm:dart2wasm_snapshot", ] + if (defined(is_product) && !is_product) { + deps += [ "utils/dart2wasm:dart2wasm_asserts_snapshot" ] + } } group("dart2wasm") {