Respect default goma path on Windows (flutter/engine#7643)

This commit is contained in:
liyuqian 2019-01-30 13:00:34 -08:00 committed by GitHub
parent 8a941d7b3c
commit 074cda1d2e

View File

@ -199,6 +199,11 @@ def to_gn_args(args):
goma_dir = os.environ.get('GOMA_DIR')
goma_home_dir = os.path.join(os.getenv('HOME', ''), 'goma')
# GOMA has a different default (home) path on gWindows.
if not os.path.exists(goma_home_dir) and sys.platform.startswith(('cygwin', 'win')):
goma_home_dir = os.path.join('c:\\', 'src', 'goma', 'goma-win64')
if args.goma and goma_dir:
gn_args['use_goma'] = True
gn_args['goma_dir'] = goma_dir