mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[web] Improve CPU usage when building wasm_release (flutter/engine#37294)
* [web] Improve CPU usage when building wasm_release * use --offline mode * make the change in tools/gn instead
This commit is contained in:
parent
30352b73a0
commit
54b38506ab
@ -228,7 +228,11 @@ def to_gn_args(args):
|
||||
('cygwin', 'win')):
|
||||
goma_home_dir = os.path.join('c:\\', 'src', 'goma', 'goma-win64')
|
||||
|
||||
if args.goma and goma_dir:
|
||||
if args.target_os == 'wasm' or args.web:
|
||||
gn_args['use_goma'] = False
|
||||
gn_args['goma_dir'] = None
|
||||
print('Disabling GOMA for wasm builds, it is not supported yet.')
|
||||
elif args.goma and goma_dir:
|
||||
gn_args['use_goma'] = True
|
||||
gn_args['goma_dir'] = goma_dir
|
||||
elif args.goma and os.path.exists(goma_home_dir):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user