Fix mingw platform detection

This commit is contained in:
messense 2021-11-15 13:57:47 +08:00
parent 3044bd9615
commit 2325c283b0
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Fix creating `#[classattr]` by functions with the name of a known magic method. [#1969](https://github.com/PyO3/pyo3/pull/1969) - Fix creating `#[classattr]` by functions with the name of a known magic method. [#1969](https://github.com/PyO3/pyo3/pull/1969)
- Fix mingw platform detection. [#1993](https://github.com/PyO3/pyo3/pull/1993)
## [0.15.0] - 2021-11-03 ## [0.15.0] - 2021-11-03

View File

@ -202,7 +202,7 @@ print_if_set("libdir", get_config_var("LIBDIR"))
print_if_set("base_prefix", base_prefix) print_if_set("base_prefix", base_prefix)
print("executable", sys.executable) print("executable", sys.executable)
print("calcsize_pointer", struct.calcsize("P")) print("calcsize_pointer", struct.calcsize("P"))
print("mingw", get_platform() == "mingw") print("mingw", get_platform().startswith("mingw"))
"#; "#;
let output = run_python_script(interpreter.as_ref(), SCRIPT)?; let output = run_python_script(interpreter.as_ref(), SCRIPT)?;
let map: HashMap<String, String> = parse_script_output(&output); let map: HashMap<String, String> = parse_script_output(&output);