There appears to be a compiler bug that causes build failures with optimization enabled when targeting ARM64 on Windows:
D:\a\1\s\Objects\unicodetype_db.h(4363): fatal error C1002: compiler is out of heap space in pass 2 [D:\a\1\s\PCbuild\pythoncore.vcxproj]
It repros reliably with cl /c /O2 Objects\unicodectype.c (with include dirs added), so I reported it to the C++ compiler team.
In the mean time, we'll disable optimizations for that file on ARM64 and hopefully that will get us through releases. Unless someone figures out a way to restructure the generated header to make the compiler happier, this is probably all we can do until the bug is fixed.
Linked PRs
There appears to be a compiler bug that causes build failures with optimization enabled when targeting ARM64 on Windows:
It repros reliably with
cl /c /O2 Objects\unicodectype.c(with include dirs added), so I reported it to the C++ compiler team.In the mean time, we'll disable optimizations for that file on ARM64 and hopefully that will get us through releases. Unless someone figures out a way to restructure the generated header to make the compiler happier, this is probably all we can do until the bug is fixed.
Linked PRs