Merge pull request #1253 from PyO3/davidhewitt-patch-8
build.rs: use inclusive range syntax
This commit is contained in:
commit
c6adde8ad5
2
build.rs
2
build.rs
|
@ -770,7 +770,7 @@ fn configure(interpreter_config: &InterpreterConfig) -> Result<String> {
|
|||
}
|
||||
|
||||
if let Some(minor) = interpreter_config.version.minor {
|
||||
for i in 6..(minor + 1) {
|
||||
for i in 6..=minor {
|
||||
println!("cargo:rustc-cfg=Py_3_{}", i);
|
||||
flags += format!("CFG_Py_3_{},", i).as_ref();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue