mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
add FIXME for making the cargo cmd properly typed
This commit is contained in:
parent
288daeb14f
commit
4797fba3b7
@ -1318,7 +1318,7 @@ impl<'a> Builder<'a> {
|
|||||||
compiler: Compiler,
|
compiler: Compiler,
|
||||||
mode: Mode,
|
mode: Mode,
|
||||||
target: TargetSelection,
|
target: TargetSelection,
|
||||||
cmd: &str,
|
cmd: &str, // FIXME make this properly typed
|
||||||
) -> Command {
|
) -> Command {
|
||||||
let mut cargo;
|
let mut cargo;
|
||||||
if cmd == "clippy" {
|
if cmd == "clippy" {
|
||||||
@ -1392,7 +1392,7 @@ impl<'a> Builder<'a> {
|
|||||||
mode: Mode,
|
mode: Mode,
|
||||||
source_type: SourceType,
|
source_type: SourceType,
|
||||||
target: TargetSelection,
|
target: TargetSelection,
|
||||||
cmd: &str,
|
cmd: &str, // FIXME make this properly typed
|
||||||
) -> Cargo {
|
) -> Cargo {
|
||||||
let mut cargo = self.bare_cargo(compiler, mode, target, cmd);
|
let mut cargo = self.bare_cargo(compiler, mode, target, cmd);
|
||||||
let out_dir = self.stage_out(compiler, mode);
|
let out_dir = self.stage_out(compiler, mode);
|
||||||
@ -2100,7 +2100,7 @@ impl<'a> Builder<'a> {
|
|||||||
rustflags.arg("-Zinline-mir");
|
rustflags.arg("-Zinline-mir");
|
||||||
}
|
}
|
||||||
|
|
||||||
if builder.config.rustc_parallel
|
if self.config.rustc_parallel
|
||||||
&& matches!(mode, Mode::ToolRustc | Mode::Rustc | Mode::Codegen)
|
&& matches!(mode, Mode::ToolRustc | Mode::Rustc | Mode::Codegen)
|
||||||
{
|
{
|
||||||
// keep in sync with `bootstrap/lib.rs:Build::rustc_features`
|
// keep in sync with `bootstrap/lib.rs:Build::rustc_features`
|
||||||
@ -2342,7 +2342,7 @@ impl Cargo {
|
|||||||
mode: Mode,
|
mode: Mode,
|
||||||
source_type: SourceType,
|
source_type: SourceType,
|
||||||
target: TargetSelection,
|
target: TargetSelection,
|
||||||
cmd: &str,
|
cmd: &str, // FIXME make this properly typed
|
||||||
) -> Cargo {
|
) -> Cargo {
|
||||||
let mut cargo = builder.cargo(compiler, mode, source_type, target, cmd);
|
let mut cargo = builder.cargo(compiler, mode, source_type, target, cmd);
|
||||||
cargo.configure_linker(builder);
|
cargo.configure_linker(builder);
|
||||||
@ -2356,7 +2356,7 @@ impl Cargo {
|
|||||||
mode: Mode,
|
mode: Mode,
|
||||||
source_type: SourceType,
|
source_type: SourceType,
|
||||||
target: TargetSelection,
|
target: TargetSelection,
|
||||||
cmd: &str,
|
cmd: &str, // FIXME make this properly typed
|
||||||
) -> Cargo {
|
) -> Cargo {
|
||||||
builder.cargo(compiler, mode, source_type, target, cmd)
|
builder.cargo(compiler, mode, source_type, target, cmd)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user