Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/bootstrap/src/core/builder/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ impl Cargo {
cmd_kind: Kind,
) -> Cargo {
let mut cargo = builder.cargo(compiler, mode, source_type, target, cmd_kind);
if target.synthetic {
cargo.arg("-Zjson-target-spec");
}

match cmd_kind {
// No need to configure the target linker for these command types.
Expand Down Expand Up @@ -165,7 +168,11 @@ impl Cargo {
target: TargetSelection,
cmd_kind: Kind,
) -> Cargo {
builder.cargo(compiler, mode, source_type, target, cmd_kind)
let mut cargo = builder.cargo(compiler, mode, source_type, target, cmd_kind);
if target.synthetic {
cargo.arg("-Zjson-target-spec");
}
cargo
}

pub fn rustdocflag(&mut self, arg: &str) -> &mut Cargo {
Expand Down
Loading