You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rust-project: add --sysroot-mode to develop-json (#745)
Summary:
End-users might want to specify the path to their sysroot in various ways, but by default they probably just want to use whatever is implied by `rustup`, which can be found by `rustc --print=sysroot`
This implements a new `develop-json --sysroot=mode=<MODE>` command, where `<MODE>` might be:
- `rustup` (default): run `rustc --print=sysroot` to figure it out
- `buckconfig`: look in `rust.sysroot_src_path` (or whatever it's called)
- `path:some/path/here`: some random file path to a sysroot
- `cmd:some command here`: a command that is passed to the OS
This should basically allow any needed customization including cases where buck is using a vendored rustc, which may itself refer to a target name and use a command.
Pull Request resolved: #745
Reviewed By: Imxset21
Differential Revision: D61719030
Pulled By: davidbarsky
fbshipit-source-id: 821924d3c2d0348b7fc6101e6c1aa5e557158cae
0 commit comments