servo: Merge #14932 - Expand ~ in --with-gecko for ./mach build-geckolib (from Manishearth:abspath); r=jdm

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

Source-Repo: https://github.com/servo/servo
Source-Revision: ed3f53211ca91a90258c9bc2b8abceddb34e6847
This commit is contained in:
Manish Goregaokar 2017-01-09 22:41:10 -08:00
parent f0271e5f4e
commit c0c991c60c

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: