From 99089a21e5c65a0003ffdcf2aa8c338298c2a1df Mon Sep 17 00:00:00 2001 From: Jackson Gardner Date: Thu, 9 Mar 2023 13:28:39 -0800 Subject: [PATCH] Flip this flag to false, so that in-tree builds will not attempt to include wasm-opt. --- tools/gn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/gn b/tools/gn index 4aa78f229cc4d..b893752780775 100755 --- a/tools/gn +++ b/tools/gn @@ -380,6 +380,10 @@ def to_gn_args(args): else: gn_args['dart_runtime_mode'] = runtime_mode + # If we are building the dart sdk in-tree, exclude the wasm-opt target, as + # it doesn't build properly with our gn configuration. + gn_args['dart_include_wasm_opt'] = False + # Desktop embeddings can have more dependencies than the engine library, # which can be problematic in some build environments (e.g., building on # Linux will bring in pkg-config dependencies at generation time). These