Merge pull request #2296 from davidhewitt/print-config-note

build: add hint when PYO3_PRINT_CONFIG is set
This commit is contained in:
David Hewitt 2022-04-12 08:27:49 +01:00 committed by GitHub
commit cb48557601
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,6 +111,7 @@ fn print_config_and_exit(config: &InterpreterConfig) {
config config
.to_writer(&mut std::io::stdout()) .to_writer(&mut std::io::stdout())
.expect("failed to print config to stdout"); .expect("failed to print config to stdout");
println!("\nnote: unset the PYO3_PRINT_CONFIG environment variable and retry to compile with the above config");
std::process::exit(101); std::process::exit(101);
} }