mirror of
https://github.com/servo/servo.git
synced 2025-07-29 18:20:24 +01:00
mach: run rustup target add
in ensure_bootstrapped
This commit is contained in:
parent
cef92a2050
commit
e56e49e98f
4 changed files with 12 additions and 11 deletions
|
@ -241,13 +241,13 @@ class PostBuildCommands(CommandBase):
|
|||
@CommandBase.build_like_command_arguments
|
||||
def doc(self, params, features, target=None, android=False, magicleap=False,
|
||||
media_stack=None, **kwargs):
|
||||
self.ensure_bootstrapped()
|
||||
rustc_path = check_output(
|
||||
["rustup" + BIN_SUFFIX, "which", "--toolchain", self.rust_toolchain(), "rustc"])
|
||||
assert path.basename(path.dirname(rustc_path)) == "bin"
|
||||
toolchain_path = path.dirname(path.dirname(rustc_path))
|
||||
rust_docs = path.join(toolchain_path, "share", "doc", "rust", "html")
|
||||
|
||||
self.ensure_bootstrapped()
|
||||
docs = path.join(self.get_target_dir(), "doc")
|
||||
if not path.exists(docs):
|
||||
os.makedirs(docs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue