Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit ecc813b

Browse files
authoredNov 3, 2016
Merge pull request #135 from brson/rust-docs
Make rust-docs optional
2 parents 4e3af68 + d1651b4 commit ecc813b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed
 

‎master/build-rust-manifest.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,14 @@ def build_manifest(rustc_date, rustc_version, rustc_short_version,
331331
required_components = []
332332
extensions = []
333333

334-
for component in ["rustc", "rust-std", "rust-docs", "cargo"]:
334+
# Required components for all hosts
335+
for component in ["rustc", "rust-std", "cargo"]:
335336
required_components += [{
336337
"pkg": component,
337338
"target": host,
338339
}]
339340

341+
# Windows has some extra stuff for the gnu toolchain
340342
if "windows" in host and "gnu" in host:
341343
required_components += [
342344
{
@@ -345,7 +347,14 @@ def build_manifest(rustc_date, rustc_version, rustc_short_version,
345347
}
346348
]
347349

348-
# All std are extensions
350+
# Optional components for all hosts
351+
for component in ["rust-docs"]:
352+
extensions += [{
353+
"pkg": component,
354+
"target": host,
355+
}]
356+
357+
# All std are optional
349358
for target in target_list:
350359
# host std is required though
351360
if target == host: continue
@@ -355,7 +364,7 @@ def build_manifest(rustc_date, rustc_version, rustc_short_version,
355364
"target": target,
356365
}]
357366

358-
# The src package is also an extension
367+
# The src package is also optional
359368
extensions += [{
360369
"pkg": "rust-src",
361370
"target": "*",

0 commit comments

Comments
 (0)
This repository has been archived.