Skip to content

gh-90815: Exclude mimalloc .c files from Windows build - #111532

Merged
DinoV merged 2 commits into
python:mainfrom
DinoV:nogil/mimalloc_windows
Oct 31, 2023
Merged

gh-90815: Exclude mimalloc .c files from Windows build#111532
DinoV merged 2 commits into
python:mainfrom
DinoV:nogil/mimalloc_windows

Conversation

@DinoV

@DinoVDinoV commented Oct 31, 2023

Copy link
Copy Markdown
Contributor

Remove mimalloc .c files from Windows build

@vstinner

Copy link
Copy Markdown
Member

There are some compiler warnings: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 1 has type 'unsigned __int64' [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]

@vstinner

Copy link
Copy Markdown
Member

Tests pass!

@corona10corona10 changed the title Don't include mimalloc .c's in Windows buildgh-90815: Exclude mimalloc .c files from Windows buildOct 31, 2023

@vstinnervstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Objects/obmalloc.c uses #include "pycore_mimalloc.h", so already includes mimalloc code "statically".

@vstinner

Copy link
Copy Markdown
Member

I don't click on "Enable auto-merge", since I would like to see if the warnings are gone ;-)

Summary:
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags:
@DinoV
DinoVforce-pushed the nogil/mimalloc_windows branch from 846b2af to 7894ccaCompareOctober 31, 2023 17:24
@DinoV
DinoV merged commit c42347d into python:mainOct 31, 2023
FullteaR pushed a commit to FullteaR/cpython that referenced this pull request Nov 3, 2023
…111532)
* Don't include mimalloc .c's in Windows build
* Fix warnings on Windows related to mimalloc
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…111532)
* Don't include mimalloc .c's in Windows build
* Fix warnings on Windows related to mimalloc
@DinoV
DinoV deleted the nogil/mimalloc_windows branch May 31, 2024 18:23
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…111532)
* Don't include mimalloc .c's in Windows build
* Fix warnings on Windows related to mimalloc
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@DinoV@vstinner