From: bors Date: Mon, 26 Mar 2018 13:00:26 +0000 (+0000) Subject: Auto merge of #5228 - phil-opp:target-spec, r=alexcrichton X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~2^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=715fc78caa832223a3404925a829e18c7832703a;p=cargo.git Auto merge of #5228 - phil-opp:target-spec, r=alexcrichton Add support for absolute target.json paths Builds upon https://github.com/rust-lang/rust/pull/49019 with the goal to provide a solution to https://github.com/rust-lang/cargo/issues/4905. This PR does two things: ~~1. It appends a hash of the target path to the target folder name if a `*.json` path is passed as `--target`, like it's done in https://github.com/rust-lang/rust/pull/49019. This helps differentiating targets with the same JSON file name and avoids sysroot clashes in `xargo`.~~ See https://github.com/rust-lang/cargo/pull/5228#discussion_r176827531 2. It canonicalizes the passed target path (if it's a `*.json` path), so that the path stays valid when building dependencies and setting the `RUST_TARGET_PATH` environment variable is no longer necessary. --- 715fc78caa832223a3404925a829e18c7832703a