Skip to content

how to build and run compiler, first shot #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 25, 2018

Conversation

nikomatsakis
Copy link
Contributor

Fixes #8

Then you will want to open up the file and change the following
settings (and possibly others, such as `llvm.ccache`):

```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: This could be ```toml

probably the best "go to" command for building a local rust:

```
./x.py build --incremental --stage 1 src/libstd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use the short form -i instead of --incremental here 😄


- Build stage1 rustc with stage0 compiler
- Build libstd with stage1 compiler (up to here is the same)
- Build stage2 rustc with stage1 compiler (this part is new)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe explain what is stage2? previously you did explain stage1.

resulting rustc, we recommend creating rustup toolchains. The first
one will run the stage1 compiler (which we built above). The second
will execute the stage2 compiler (which we did not build, but which
you will likely build at some point).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why you will likely build it?. Maybe explain that 😄

@nikomatsakis
Copy link
Contributor Author

OK, fixed a few nits, gonna land.

@nikomatsakis nikomatsakis merged commit f0e17c6 into rust-lang:master Jan 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants