Skip to content

Commit 38e2d00

Browse files
committed
build-manifest: package docs only for tier 1 platforms
1 parent 729a87e commit 38e2d00

File tree

1 file changed

+12
-1
lines changed
  • src/tools/build-manifest/src

1 file changed

+12
-1
lines changed

src/tools/build-manifest/src/main.rs

+12-1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,17 @@ static TARGETS: &'static [&'static str] = &[
121121
"x86_64-unknown-redox",
122122
];
123123

124+
static DOCS_TARGETS: &'static [&'static str] = &[
125+
"i686-apple-darwin",
126+
"i686-pc-windows-gnu",
127+
"i686-pc-windows-msvc",
128+
"i686-unknown-linux-gnu",
129+
"x86_64-apple-darwin",
130+
"x86_64-pc-windows-gnu",
131+
"x86_64-pc-windows-msvc",
132+
"x86_64-unknown-linux-gnu",
133+
];
134+
124135
static MINGW: &'static [&'static str] = &[
125136
"i686-pc-windows-gnu",
126137
"x86_64-pc-windows-gnu",
@@ -338,7 +349,7 @@ impl Builder {
338349
self.package("cargo", &mut manifest.pkg, HOSTS);
339350
self.package("rust-mingw", &mut manifest.pkg, MINGW);
340351
self.package("rust-std", &mut manifest.pkg, TARGETS);
341-
self.package("rust-docs", &mut manifest.pkg, TARGETS);
352+
self.package("rust-docs", &mut manifest.pkg, DOCS_TARGETS);
342353
self.package("rust-src", &mut manifest.pkg, &["*"]);
343354
self.package("rls-preview", &mut manifest.pkg, HOSTS);
344355
self.package("clippy-preview", &mut manifest.pkg, HOSTS);

0 commit comments

Comments
 (0)