conda-forge / conda-forge/conda-forge.github.io

Unable to use MinGW instead of MSVC for building packages on Windows

Open
#2,337 7 comments 1 reaction 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
170
Forks
320
Avg merge
2d 10h
Merged PRs (30d)
5

Description

### Your question:

Hello!

I am trying to contribute the [Lets-Plot](https://github.com/JetBrains/lets-plot) package to conda-forge.
That project is based on Kotlin Native with Python API.

The issue I am facing is that `conda-build` defaults to using MSVC on Windows, but the library needs to be built with MinGW, because Kotlin Native supports only MinGW as a build target for the Windows platform.

Even after configuring `meta.yaml`, `bld.bat`, and `setup.py` to explicitly call MinGW, `conda-build` continues to invoke MSVC.

Steps taken:

- Modified `bld.bat` to configure MinGW.
- Adjusted `setup.py` to link to MinGW binaries.
- Set appropriate environment variables.
- Despite these modifications, `conda-build` continues to use MSVC.

Is there an official way to force `conda-build` to use MinGW for Windows builds? Or are there any known workarounds or future plans to support this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.