| 24 | === Upgrading from 1.x.y to 1.x.z or 1.(x+1).z === |
| 25 | |
| 26 | If you've already installed Rustc-1.x.y and now you are building Rustc-1.x.z or Rustc-1.(x+1).z (where x, y, z are any integers), |
| 27 | you may add two lines into the `[build]` section of `config.toml`: |
| 28 | |
| 29 | {{{ |
| 30 | rustc = '/opt/rustc-1.x.y/bin/rustc' |
| 31 | cargo = '/opt/rustc-1.x.y/bin/cargo' |
| 32 | }}} |
| 33 | |
| 34 | Then the building system will use Rustc-1.x.y as the bootstrap compiler, instead of downloading a pre-built binary. So this method can also avoid a dependency on the Internet connection. |
| 35 | |
| 36 | Note that this generally won't work if you are building Rustc-1.t.z where t is neither x nor x+1. |
| 37 | |