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

Add xdoc command #39

Closed Aehmlo closed 5 years ago

Aehmlo commented 5 years ago

By setting RUSTDOCFLAGS in addition to RUSTFLAGS, this patch allows rustdoc to inherit the modified sysroot. Closes #38.

(Figured I'd log RUSTDOCFLAGS in verbose mode too, in case future versions set it to something different than RUSTFLAGS, and since it's, well, verbose mode. Additionally, passing a reference to Command:env is totally equivalent to passing an owned string. Pretty minor patch.)

phil-opp commented 5 years ago

Looks good to me, thanks a lot!

phil-opp commented 5 years ago

Published as version 0.5.13