简体   繁体   English

如何找到用于引导 rustc master 的 rustc 提交

[英]How to find the commit of rustc used to bootstrap rustc master

I'm trying to build Rust from source.我正在尝试从源代码构建 Rust。 From the stage0.txt I can see that the rustc used is beta-2016-04-13 and the rustc_key is c2743eb4 .从 stage0.txt 我可以看到使用的 rustc 是beta-2016-04-13rustc_keyc2743eb4

How do I find out which commit beta-2016-04-13 represents?我如何找出 beta-2016-04-13 代表哪个提交?

And if I build rustc beta will the rustc_key be a different one?如果我构建 rustc beta, rustc_key 会是另一个吗?

You actually do not need to figure out which rustc commit it is.您实际上不需要弄清楚它是哪个 rustc 提交。 Since Rust is bootstrapped from the previous version , you can simply use the last beta (or stable in the future, probably after the next release).由于Rust 是从先前版本引导而来的,因此您可以简单地使用最后一个测试版(或将来稳定,可能在下一个版本之后)。

Quoting Alex Crichton in the PR that changed this:在 PR 中引用 Alex Crichton 的话改变了这一点:

This commit removes all infrastructure from the repository for our so-called snapshots to instead bootstrap the compiler from stable releases.此提交从存储库中删除了我们所谓的快照的所有基础架构,而是从稳定版本引导编译器。


And if I build rustc beta will the rustc_key be a different one?如果我构建 rustc beta, rustc_key 会是另一个吗?

No, you can build anything up to and including (meaning the beta) the next rustc version with that key.不,您可以使用该密钥构建任何东西,包括(即测试版)下一个 rustc 版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM