mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
Use Cargo's target directory sharing.
This speeds up `./mach build --dev` followed by `./mach build-cef` by a large amount, and also speeds up other build combos found in our CI.
This commit is contained in:
parent
ce30807be5
commit
a0237085c6
14 changed files with 31 additions and 30 deletions
|
@ -47,12 +47,11 @@ class MachCommands(CommandBase):
|
|||
|
||||
def find_test(self, prefix):
|
||||
target_contents = os.listdir(path.join(
|
||||
self.context.topdir, "components", "servo", "target", "debug"))
|
||||
self.get_target_dir(), "debug"))
|
||||
for filename in target_contents:
|
||||
if filename.startswith(prefix + "-"):
|
||||
filepath = path.join(
|
||||
self.context.topdir, "components", "servo",
|
||||
"target", "debug", filename)
|
||||
self.get_target_dir(), "debug", filename)
|
||||
|
||||
if path.isfile(filepath) and os.access(filepath, os.X_OK):
|
||||
return filepath
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue