Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 572544 Details for
Bug 683128
dev-lang/rust-1.34.0 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
https://github.com/rust-lang/rust/pull/58947
1.34.0-fix-rustdoc.patch (text/plain), 4.27 KB, created by
Oleg
on 2019-04-12 04:03:18 UTC
(
hide
)
Description:
https://github.com/rust-lang/rust/pull/58947
Filename:
MIME Type:
Creator:
Oleg
Created:
2019-04-12 04:03:18 UTC
Size:
4.27 KB
patch
obsolete
>diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs >index 7e6c0a9f52..bc033bd0bc 100644 >--- a/src/bootstrap/builder.rs >+++ b/src/bootstrap/builder.rs >@@ -677,9 +677,10 @@ impl<'a> Builder<'a> { > let compiler = self.compiler(self.top_stage, host); > cmd.env("RUSTC_STAGE", compiler.stage.to_string()) > .env("RUSTC_SYSROOT", self.sysroot(compiler)) >- // Note that this is *not* the sysroot_libdir because rustdoc must be linked >- // equivalently to rustc. >- .env("RUSTDOC_LIBDIR", self.rustc_libdir(compiler)) >+ .env( >+ "RUSTDOC_LIBDIR", >+ self.sysroot_libdir(compiler, self.config.build), >+ ) > .env("CFG_RELEASE_CHANNEL", &self.config.channel) > .env("RUSTDOC_REAL", self.rustdoc(host)) > .env("RUSTDOC_CRATE_VERSION", self.rust_version()) >@@ -873,7 +874,7 @@ impl<'a> Builder<'a> { > } else { > &maybe_sysroot > }; >- let libdir = self.rustc_libdir(compiler); >+ let libdir = sysroot.join(libdir(&compiler.host)); > > // Customize the compiler we're running. Specify the compiler to cargo > // as our shim and then pass it some various options used to configure >@@ -915,7 +916,7 @@ impl<'a> Builder<'a> { > cargo.env("RUSTC_ERROR_FORMAT", error_format); > } > if cmd != "build" && cmd != "check" && cmd != "rustc" && want_rustdoc { >- cargo.env("RUSTDOC_LIBDIR", self.rustc_libdir(compiler)); >+ cargo.env("RUSTDOC_LIBDIR", self.sysroot_libdir(compiler, self.config.build)); > } > > if mode.is_tool() { >diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs >index fc1a17d546..021c9f3656 100644 >--- a/src/bootstrap/tool.rs >+++ b/src/bootstrap/tool.rs >@@ -418,25 +418,25 @@ impl Step for Rustdoc { > > fn run(self, builder: &Builder<'_>) -> PathBuf { > let target_compiler = builder.compiler(builder.top_stage, self.host); >- if target_compiler.stage == 0 { >- if !target_compiler.is_snapshot(builder) { >- panic!("rustdoc in stage 0 must be snapshot rustdoc"); >- } >- return builder.initial_rustc.with_file_name(exe("rustdoc", &target_compiler.host)); >- } > let target = target_compiler.host; >- // Similar to `compile::Assemble`, build with the previous stage's compiler. Otherwise >- // we'd have stageN/bin/rustc and stageN/bin/rustdoc be effectively different stage >- // compilers, which isn't what we want. Rustdoc should be linked in the same way as the >- // rustc compiler it's paired with, so it must be built with the previous stage compiler. >- let build_compiler = builder.compiler(target_compiler.stage - 1, builder.config.build); >- >- // The presence of `target_compiler` ensures that the necessary libraries (codegen backends, >- // compiler libraries, ...) are built. Rustdoc does not require the presence of any >- // libraries within sysroot_libdir (i.e., rustlib), though doctests may want it (since >- // they'll be linked to those libraries). As such, don't explicitly `ensure` any additional >- // libraries here. The intuition here is that If we've built a compiler, we should be able >- // to build rustdoc. >+ let build_compiler = if target_compiler.stage == 0 { >+ builder.compiler(0, builder.config.build) >+ } else if target_compiler.stage >= 2 { >+ // Past stage 2, we consider the compiler to be ABI-compatible and hence capable of >+ // building rustdoc itself. >+ builder.compiler(target_compiler.stage, builder.config.build) >+ } else { >+ // Similar to `compile::Assemble`, build with the previous stage's compiler. Otherwise >+ // we'd have stageN/bin/rustc and stageN/bin/rustdoc be effectively different stage >+ // compilers, which isn't what we want. >+ builder.compiler(target_compiler.stage - 1, builder.config.build) >+ }; >+ >+ builder.ensure(compile::Rustc { compiler: build_compiler, target }); >+ builder.ensure(compile::Rustc { >+ compiler: build_compiler, >+ target: builder.config.build, >+ }); > > let mut cargo = prepare_tool_cargo( > builder,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 683128
:
572540
|
572542
| 572544