When rustbuild is invoked with -v, extra_help variable is populate using metadata::build() (for any command). It will call cargo metadata for several crates.
The build configuration used is at this place is Config::default().
As I use config.toml to set cargo binary path, the setting is ignored, and rustbuild fails when -v is on command-line: by default it uses stage0_root path, and cargo binary isn't available at this place.
When rustbuild is invoked with
-v,extra_helpvariable is populate usingmetadata::build()(for any command). It will callcargo metadatafor several crates.The build configuration used is at this place is
Config::default().As I use
config.tomlto setcargobinary path, the setting is ignored, and rustbuild fails when-vis on command-line: by default it usesstage0_rootpath, andcargobinary isn't available at this place.