aboutsummaryrefslogtreecommitdiff
path: root/Programs
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2021-09-15 18:11:12 +0100
committerGitHub <noreply@github.com>2021-09-15 18:11:12 +0100
commit09b4ad11f323f8702cde795e345b75e0fbb1a9a5 (patch)
treefe54816a9bcabfda7e410e5d23646c0bc8e6d9a0 /Programs
parentd897579a80da3f4572d96501c41bec6cacb10d84 (diff)
downloadcpython3-09b4ad11f323f8702cde795e345b75e0fbb1a9a5.tar.gz
bpo-45188: Windows now regenerates frozen modules at the start of build instead of late (GH-28322)
This will enable us to drop the frozen module header files from the repository. It does currently cause many source files to be built twice, which just takes more time. For whoever comes to fix this in the future, the files shared between freeze_module and pythoncore should be put into a static library that is consumed by both.
Diffstat (limited to 'Programs')
-rw-r--r--Programs/_freeze_module.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Programs/_freeze_module.c b/Programs/_freeze_module.c
index 7e9f02aec8..4b0633e7e7 100644
--- a/Programs/_freeze_module.c
+++ b/Programs/_freeze_module.c
@@ -25,12 +25,7 @@ static const struct _frozen _PyImport_FrozenModules[] = {
{0, 0, 0} /* sentinel */
};
-#ifndef MS_WINDOWS
-/* On Windows, this links with the regular pythonXY.dll, so this variable comes
- from frozen.obj. In the Makefile, frozen.o is not linked into this executable,
- so we define the variable here. */
const struct _frozen *PyImport_FrozenModules;
-#endif
static const char header[] =
"/* Auto-generated by Programs/_freeze_module.c */";