Skip to content
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

Allow box allocations #1

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ license = "ISC"
[[bin]]
name = "miri"
doc = false

[dependencies]
log = "*"
env_logger = "*"
6 changes: 5 additions & 1 deletion src/bin/miri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
extern crate miri;
extern crate rustc;
extern crate rustc_driver;
extern crate env_logger;

use miri::interpreter;
use rustc::session::Session;
Expand All @@ -24,6 +25,9 @@ impl<'a> CompilerCalls<'a> for MiriCompilerCalls {
}

fn main() {
let args: Vec<String> = std::env::args().collect();
env_logger::init().unwrap();
let mut args: Vec<String> = std::env::args().collect();
args.push(String::from("--sysroot"));
args.push(format!("{}/.multirust/toolchains/nightly", std::env::var("HOME").unwrap()));
rustc_driver::run_compiler(&args, &mut MiriCompilerCalls);
}
Loading