mirror of
https://github.com/servo/servo.git
synced 2025-06-11 01:50:10 +00:00
Auto merge of #6306 - metajack:shared-target-dir, r=mbrubeck
This speeds up `./mach build --dev` followed by `./mach build-cef` by 25%. When rust-lang/cargo#497 is fixed, this speedup will increase dramatically. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6306) <!-- Reviewable:end -->
This commit is contained in:
commit
d6263c9b6e
14 changed files with 31 additions and 30 deletions
|
@ -50,12 +50,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