Skip to content

Commit

Permalink
Respect default goma path on Windows (flutter#7643)
Browse files Browse the repository at this point in the history
  • Loading branch information
liyuqian authored Jan 30, 2019
1 parent 050dcaa commit 09a3735
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/gn
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09a3735

Please sign in to comment.