summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2021-11-22 18:09:48 (GMT)
committerGitHub <noreply@github.com>2021-11-22 18:09:48 (GMT)
commit1037ca5a8ea001bfa2a198e08655620234e9befd (patch)
treedcf9b1966caca1eab0437f730f487701a960d851 /Python
parent4d6c0c0cce05befa06e0cad7351b1303ac048277 (diff)
downloadcpython-1037ca5a8ea001bfa2a198e08655620234e9befd.zip
cpython-1037ca5a8ea001bfa2a198e08655620234e9befd.tar.gz
cpython-1037ca5a8ea001bfa2a198e08655620234e9befd.tar.bz2
bpo-45850: Implement deep-freeze on Windows (#29648)
Implement changes to build with deep-frozen modules on Windows. Note that we now require Python 3.10 as the "bootstrap" or "host" Python. This causes a modest startup speed (around 7%) on Windows.
Diffstat (limited to 'Python')
-rw-r--r--Python/frozen.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Python/frozen.c b/Python/frozen.c
index 1565c9a..9f43db7 100644
--- a/Python/frozen.c
+++ b/Python/frozen.c
@@ -61,12 +61,7 @@
#include "frozen_modules/frozen_only.h"
/* End includes */
-#ifdef MS_WINDOWS
-/* Deepfreeze isn't supported on Windows yet. */
-#define GET_CODE(name) NULL
-#else
#define GET_CODE(name) _Py_get_##name##_toplevel
-#endif
/* Start extern declarations */
extern PyObject *_Py_get_importlib__bootstrap_toplevel(void);