rust-osdev / cargo-xbuild

Automatically cross-compiles the sysroot crates core, compiler_builtins, and alloc.
Apache License 2.0
258 stars 25 forks source link

Don't append a `--sysroot` argument to `RUSTFLAGS` if it already contains one #40

Closed phil-opp closed 5 years ago

phil-opp commented 5 years ago

Appending the flag a second time leads to a "Option 'sysroot' given more than once" error.

This problem occurs because the user might set the RUSTFLAGS environment manually, for example for getting RLS to work.

phil-opp commented 5 years ago

Published as 0.5.14