diff options
| author | Christoph Reiter <reiter.christoph@gmail.com> | 2023-12-02 19:44:34 +0100 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-12-03 13:42:45 -0500 |
| commit | 6eee9e7c0c91fecb26676c05898c54d010b5e1c4 (patch) | |
| tree | 010548ce2b75c99a67561e90e0569091084911ff /tools | |
| parent | 4ddaef813354f04b94f447d8881ece43db1c3108 (diff) | |
| download | meson-6eee9e7c0c91fecb26676c05898c54d010b5e1c4.tar.gz | |
python: fix mingw python detection code in case pkg-config isn't available
The code assumed that sysconfig.get_platform() returns "mingw" for mingw Python,
but that's no longer the case for 2.5 years now, as it now only starts with
"mingw" and contains further information like the arch and other ABI relevant things
to avoid conflicts.
This updates the detection code to the current status quo. mingw Python only documents
right now that it starts with "mingw", and none of that arch stuff, but it's
unlikely that this will change, and this looks less error prone than looking at CC.
Fixes #12547
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
