mirror of
https://github.com/servo/servo.git
synced 2025-07-26 16:50:23 +01: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
|
@ -137,8 +137,7 @@ class MachCommands(CommandBase):
|
|||
if not path.exists(path.join(self.config["tools"]["rust-root"], "doc")):
|
||||
Registrar.dispatch("bootstrap-rust-docs", context=self.context)
|
||||
rust_docs = path.join(self.config["tools"]["rust-root"], "doc")
|
||||
docs = path.join(
|
||||
self.context.topdir, "components", "servo", "target", "doc")
|
||||
docs = path.join(self.get_target_dir(), "doc")
|
||||
if not path.exists(docs):
|
||||
os.makedirs(docs)
|
||||
|
||||
|
@ -167,4 +166,4 @@ class MachCommands(CommandBase):
|
|||
self.doc([])
|
||||
import webbrowser
|
||||
webbrowser.open("file://" + path.abspath(path.join(
|
||||
self.servo_crate(), "target", "doc", "servo", "index.html")))
|
||||
self.get_target_dir(), "doc", "servo", "index.html")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue