more comment
This commit is contained in:
parent
1ba42b9f55
commit
20097be2fe
1 changed files with 2 additions and 1 deletions
|
|
@ -502,7 +502,8 @@ fn inside_cargo_rustc() {
|
|||
///
|
||||
/// Currently, we detect this by checking for "--target=", which is
|
||||
/// never set for host crates. This matches what rustc bootstrap does,
|
||||
/// which hopefully makes it "reliable enough".
|
||||
/// which hopefully makes it "reliable enough". This relies on us always
|
||||
/// invoking cargo itself with `--target`, which `in_cargo_miri` ensures.
|
||||
fn is_target_crate() -> bool {
|
||||
get_arg_flag_value("--target").is_some()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue