Skip to content

Commit 79253e7

Browse files
mdebbarschwa423
authored andcommitted
[web] Improve CPU usage when building wasm_release (flutter#37294)
* [web] Improve CPU usage when building wasm_release * use --offline mode * make the change in tools/gn instead
1 parent 0aa1003 commit 79253e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/gn

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,11 @@ def to_gn_args(args):
228228
('cygwin', 'win')):
229229
goma_home_dir = os.path.join('c:\\', 'src', 'goma', 'goma-win64')
230230

231-
if args.goma and goma_dir:
231+
if args.target_os == 'wasm' or args.web:
232+
gn_args['use_goma'] = False
233+
gn_args['goma_dir'] = None
234+
print('Disabling GOMA for wasm builds, it is not supported yet.')
235+
elif args.goma and goma_dir:
232236
gn_args['use_goma'] = True
233237
gn_args['goma_dir'] = goma_dir
234238
elif args.goma and os.path.exists(goma_home_dir):

0 commit comments

Comments
 (0)