-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing compiler build and using
rustup
(#33)
Changing to use `rustup` for the Rust compiler now that we are not on our own fork. - [x] Need `build.rs` so that correct rust version is used with components installed - [x] Need to update README.md - [x] Building with `Makefile` needs to be removed - [x] Handling tests with `Makefile` needs to change to use `cargo` - [x] CI needs to be updated succesfully - [x] Need to handle golden tests difference - [x] Need to make sure this will still work with `mir-semantics` ([see this PR](runtimeverification/mir-semantics#439)) Moved to future work: - [ ] Change tests to use `cargo test` ? Could remove `Makefile` entirely then - [ ] Need to make sure this will still work with extracting stable-mir-json for cargo projects / `std lib`
- Loading branch information
Showing
35 changed files
with
6,912 additions
and
3,905 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
use std::process::Command; | ||
|
||
fn main() { | ||
let status = Command::new("rustup") | ||
.args(&["install", "nightly-2024-11-29"]) | ||
.status() | ||
.expect("build.rs failed to install nightly-2024-11-29"); | ||
|
||
println!("Installed nightly-2024-11-29: {}", status); | ||
|
||
let status = Command::new("rustup") | ||
.args(&["default", "nightly-2024-11-29"]) | ||
.status() | ||
.expect("build.rs failed to default nightly-2024-11-29"); | ||
|
||
println!("Defaulted nightly-2024-11-29: {}", status); | ||
|
||
let status = Command::new("rustup") | ||
.args(&["component", "add", "rustc-dev"]) | ||
.status() | ||
.expect("build.rs failed to install rustc-dev"); | ||
|
||
println!("Added component rustc-dev: {}", status); | ||
|
||
let status = Command::new("rustup") | ||
.args(&["component", "add", "llvm-tools"]) | ||
.status() | ||
.expect("build.rs failed to install llvm-tools"); | ||
|
||
println!("Added component llvm-tools: {}", status); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.