forked from facebook/buck2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust-project: add
--sysroot-mode
to develop-json
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. Signed-off-by: Austin Seipp <aseipp@pobox.com>
- Loading branch information
1 parent
9f9d1b7
commit 2761303
Showing
2 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters