Stream: t-compiler/cargo-bisect-rustc

Topic: can't bisect because of new codegen option


Camelid (Oct 19 2020 at 17:36, on Zulip):

I can't bisect longer ago than around May, which is about when embed-bitcode was added. cargo seems to be passing the embed-bitcode flag to the older nightlies which causes them to fail since they don't recognize the option. Thus I can't bisect because it always fails :(

Here's what it looks like to run cargo rustc with one of the bisector nightlies:

$ cargo +bisector-nightly-2020-01-01-x86_64-apple-darwin build
   Compiling rust-issue-78113 v0.1.0 (/Users/user/rust-issue-78113)
error: unknown codegen option: `embed-bitcode`

error: could not compile `rust-issue-78113`

To learn more, run the command again with --verbose.
Camelid (Oct 19 2020 at 17:36, on Zulip):

Is there any way I can get around this?

Camelid (Oct 19 2020 at 17:37, on Zulip):

(deleted)

Eric Huss (Oct 19 2020 at 18:28, on Zulip):

Are you running cargo-bisect-rustc with a version that includes https://github.com/rust-lang/cargo-bisect-rustc/pull/98? It should automatically download the appropriate cargo. If that bisector-nightly was downloaded from an older release, I would just delete it or manually fetch cargo.

Camelid (Oct 20 2020 at 02:39, on Zulip):

I'm on the latest version, but it looks like the latest version is from May and doesn't include that PR. Maybe it would be good to release a new patch version?

Last update: Nov 25 2020 at 02:30UTC