Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set CARGO_BUILD_TARGET in bisect run #159

Merged
merged 1 commit into from
Jun 20, 2022

Conversation

Emilgardis
Copy link
Contributor

No description provided.

@Emilgardis
Copy link
Contributor Author

Emilgardis commented Jun 16, 2022

related to cross-rs/cross#804 and cross-rs/cross#699, this should help with some pitfalls when using cargo-bisect-rustc while setting a target

bors bot added a commit to cross-rs/cross that referenced this pull request Jun 16, 2022
803: add `CROSS_CUSTOM_TOOLCHAIN` to disable automatic target component downloading r=Alexhuszagh a=Emilgardis

This adds an environment variable `CROSS_CUSTOM_TOOLCHAIN` to disable some rustup commands.

The way to use this with `cargo-bisect-rustc` is `cargo bisect-rustc --script=./bisect.sh --target powerpc64le-unknown-linux-gnu` and the script is

```sh
#!/usr/bin/env bash

export CROSS_CUSTOM_TOOLCHAIN=1
exec cross run --target powerpc64le-unknown-linux-gnu
```

I've filed rust-lang/cargo-bisect-rustc#159 to avoid the pitfall that was discovered when not specifying `--target`

resolves #699


Co-authored-by: Emil Gardström <[email protected]>
@oli-obk oli-obk merged commit 06955a4 into rust-lang:master Jun 20, 2022
@Emilgardis Emilgardis deleted the cargo_build_target branch November 26, 2022 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants