mimalloc icon indicating copy to clipboard operation
mimalloc copied to clipboard

fix build on non desktop windows app partitions

Open maxbachmann opened this issue 7 months ago • 0 comments

This is a patch set I used to build mimalloc on the xbox to get Cpython to build there.

The following functions / types are unavailable:

  • NTSTATUS not available
  • GetConsoleScreenBufferInfo, CONSOLE_SCREEN_BUFFER_INFO and WriteConsoleA unavailable
  • GetNumaNodeProcessorMask unavailable
  • GetLargePageMinimum unavailable

The functions for GetPhysicallyInstalledSystemMemory aren't available either, but they aren't used in the mimalloc version in Cpython 3.13. Since they are dynamically loaded it's quite likely that they won't cause any problems.

I wasn't entirely sure how you would like to have the api family guards defined / used in there.

maxbachmann avatar May 06 '25 22:05 maxbachmann