Files
MINGW-packages/mingw-w64-python-scikit-learn/001-remove-extra-flags.patch
2025-12-22 02:05:35 +01:00

18 lines
756 B
Diff

--- a/sklearn/meson.build
--- a/sklearn/meson.build
@@ -7,14 +7,6 @@
# Adapted from Scipy. mingw is untested and not officially supported. If you
# ever bump into issues when trying to compile for mingw, please open an issue
# in the scikit-learn issue tracker
-if is_mingw
- # For mingw-w64, link statically against the UCRT.
- gcc_link_args = ['-lucrt', '-static']
- add_project_link_arguments(gcc_link_args, language: ['c', 'cpp'])
- # Force gcc to float64 long doubles for compatibility with MSVC
- # builds, for C only.
- add_project_arguments('-mlong-double-64', language: 'c')
-endif
# Only check build dependencies version when not cross-compiling, as running
# Python interpreter can be tricky in cross-compilation settings. For more