-
Notifications
You must be signed in to change notification settings - Fork 341
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
Document necessary environment variables for use without rustup #106
Comments
@aochagavia: did you install rust via |
I compiled it manually with |
We should actually remove those hacks and move to let sysroot = std::process::Command::new("rustc")
.arg("--print")
.arg("sysroot")
.output()
.expect("rustc not found")
.stdout;
let sysroot = std::str::from_utf8(&sysroot).expect("sysroot is not utf8").trim();
let sysroot = &Path::new(&sysroot); |
This doesn't work for me. Even trying to extern crate miri;
fn main() { } |
I played around on windows. Setting those env vars has zero effect for me. Instead the issue is
Are you sure you didn't misdiagnose this in the main post and accidentally set the
I can compile this fine, but running also gives me the error about |
Oops... I meant run! It compiles fine. |
You are right. I just tested it again and it didn't work. |
I can't figure out the environment variables to run the tests either. I've installed rust master from git, |
I set |
Maybe we could use a build.rs script to run |
Yep, that works. |
@canndrew I was worried that the I should probably try the |
Yep :)
Seems unfortunate to have the path baked-in at compile time but I don't have a better suggestion. |
I suppose we could run |
Initialization has moved quite a bit, is this still a problem? |
This issue actually asks two questions:
So, also based on the fact that nobody responded to my question from almost a year agi, I am going to close this. |
Support building without libstd
Tried to run a test with
cargo run tests/run-pass/vecs.rs
, but it results on several error messages stating that the following libraries cannot be found (note: I have removed the trailing hashes in the names for clarity):The same happens when running
miri
directly.When looking at
miri.rs
I found out that it relies onRUSTUP_HOME
andRUSTUP_TOOLCHAIN
. After adding those environment variables everything worked correctly. I think this should be documented on the readme.The text was updated successfully, but these errors were encountered: