Auto merge of #14932 - Manishearth:abspath, r=jdm

Expand ~ in --with-gecko for ./mach build-geckolib

Otherwise `~/foo` expands to `/local/folder/~/foo`.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14932)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-01-09 22:41:10 -08:00 committed by GitHub
commit ed3f53211c

View file

@ -408,7 +408,7 @@ class MachCommands(CommandBase):
opts = []
if with_gecko is not None:
opts += ["--features", "bindgen"]
env["MOZ_DIST"] = path.abspath(with_gecko)
env["MOZ_DIST"] = path.abspath(path.expanduser(with_gecko))
if jobs is not None:
opts += ["-j", jobs]
if verbose: