Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRUSTFLAGS + a sysroot with spaces in its path = 😭 #6139
Comments
steveklabnik
referenced this issue
Oct 5, 2018
Closed
RUSTFLAGS + a sysroot with spaces in its path = 😭 #54856
This comment has been minimized.
This comment has been minimized.
|
As a workaround, you could add This issue basically stems from just doing One plausible solution is to define some escaping mechanism for |
This comment has been minimized.
This comment has been minimized.
|
Although it won't work in this situation (because it uses the wrong API), I added an experimental feature that allows you to specify lists in environment variables using TOML syntax. I could extend it to cover this situation, I doubt RUSTFLAGS starting with |
This comment has been minimized.
This comment has been minimized.
|
There is a shlex crate that implements POSIX shell style splitting which would probably make this work: https://docs.rs/shlex/0.1.1/shlex/ |
steveklabnik commentedOct 5, 2018
When using
cargo-xbuildto do things like "build an OS", you need to set the sysroot viaRUSTFLAGS.Here's an example
rustcinvocation on my machine that builds:The last bit is the important part:
It appears the space in my username causes this to be impossible to set via
RUSTFLAGS. With an invocation like this:You can see that it's all good. However, this fails when passed to
rustc:I am not sure what to do here.