Skip to content

cygwinccompiler: Get the compilers from sysconfig#296

Merged
jaraco merged 1 commit intopypa:mainfrom
msys2-contrib:clang-compilers
Sep 15, 2024
Merged

cygwinccompiler: Get the compilers from sysconfig#296
jaraco merged 1 commit intopypa:mainfrom
msys2-contrib:clang-compilers

Conversation

@naveen521kk
Copy link
Copy Markdown
Contributor

On the CLANG64 environment of MSYS2, we should use clang
instead of gcc. This patch gets the compiler from sysconfig which
would be set when Python was built.

Without this patch, the build fails when it's trying to check if the
compiler is cygwin's one.

On the CLANG64 environment of MSYS2, we should use clang
instead of gcc. This patch gets the compiler from sysconfig which
would be set when Python was built.

Without this patch, the build fails when it's trying to check if the
compiler is cygwin's one.
@lazka
Copy link
Copy Markdown
Contributor

lazka commented Sep 12, 2024

lgtm

(There is potential for moving all this to customize_compiler() but we would have to somehow get rid of is_cygwincc(), or only call it when actually using the compiler, as it is currently expects the compiler to be set before customize_compiler(). Not clear, so let's keep the fix simple)

@jaraco jaraco merged commit 7283751 into pypa:main Sep 15, 2024
@naveen521kk naveen521kk deleted the clang-compilers branch September 15, 2024 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants