mirror of
https://github.com/servo/servo.git
synced 2025-07-30 18:50:36 +01:00
./mach clean
: cwd is unnecessary when --manifest-path
is used
This commit is contained in:
parent
9110b25d13
commit
aa5e5596c0
2 changed files with 2 additions and 8 deletions
|
@ -712,14 +712,11 @@ class MachCommands(CommandBase):
|
||||||
print('Removing virtualenv directory: %s' % virtualenv_path)
|
print('Removing virtualenv directory: %s' % virtualenv_path)
|
||||||
shutil.rmtree(virtualenv_path)
|
shutil.rmtree(virtualenv_path)
|
||||||
|
|
||||||
opts = []
|
opts = ["--manifest-path", manifest_path or self.ports_glutin_manifest()]
|
||||||
if manifest_path:
|
|
||||||
opts += ["--manifest-path", manifest_path]
|
|
||||||
if verbose:
|
if verbose:
|
||||||
opts += ["-v"]
|
opts += ["-v"]
|
||||||
opts += params
|
opts += params
|
||||||
return check_call(["cargo", "clean"] + opts,
|
return check_call(["cargo", "clean"] + opts, env=self.build_env(), verbose=verbose)
|
||||||
env=self.build_env(), cwd=self.ports_glutin_crate(), verbose=verbose)
|
|
||||||
|
|
||||||
|
|
||||||
def package_gstreamer_dlls(servo_exe_dir, target):
|
def package_gstreamer_dlls(servo_exe_dir, target):
|
||||||
|
|
|
@ -731,9 +731,6 @@ install them, let us know by filing a bug!")
|
||||||
|
|
||||||
return env
|
return env
|
||||||
|
|
||||||
def ports_glutin_crate(self):
|
|
||||||
return path.join(self.context.topdir, "ports", "glutin")
|
|
||||||
|
|
||||||
def add_manifest_path(self, args, android=False, libsimpleservo=False):
|
def add_manifest_path(self, args, android=False, libsimpleservo=False):
|
||||||
if "--manifest-path" not in args:
|
if "--manifest-path" not in args:
|
||||||
if libsimpleservo or android:
|
if libsimpleservo or android:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue