Skip to content

Updating the Rust compiler used by Servo

Lars Bergstrom edited this page Jun 6, 2014 · 22 revisions

The Rust compiler is prebuilt for Servo, targeting our main host platforms (OSX and Linux), each targeting both the native host platform and Android.

Prebuilding a Rust compiler

A special TravisCI integration is connected to our fork of Rust, in the travis branch. It will automatically build on OSX and Linux and then deploy that build to an S3 bucket corresponding to the git SHA of the head commit.

To create a new cached Rust compiler, pull from Rust master into our fork (carefully avoiding squashing our .travis.yml file with the very different one used by the Rust team!) and then watch for the completed TravisCI build.

Updating the Rust compiler version used in Servo

Once a build has been uploaded, the SHA of the head commit from our Rust fork needs to be entered into the file src/compiler/rust/compiler-version. A subsequent run of the configure script will pull down the new compiler from our S3 bucket and use that instead of the old one.

Clone this wiki locally