Skip to content

Commit

Permalink
build: set rust toolchain version with rustup
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzdan committed Dec 15, 2023
1 parent abf2e86 commit d75e0b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ namespace mozilla::recordreplay {
`
);

// set rust compiler version with rustup
spawnChecked("rustup", ["show"]);

const buildOptions = {
stdio: "inherit",
env: {
Expand Down Expand Up @@ -116,7 +119,7 @@ function getRevisionDate(
*/
function computeBuildId() {
const geckoRevision = spawnChecked("git", ["rev-parse", "--short=12", "HEAD"]).stdout.toString().trim();

const runtimeDate = getRevisionDate();

// Use the later of the two dates in the build ID.
Expand Down
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "1.51.0"

0 comments on commit d75e0b5

Please sign in to comment.