mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-25 06:42:27 +00:00
Perform build and magnum tuning
Building o//third_party/python now takes 5 seconds on my PC This change works towards modifying Python to use runtime dispatching when appropriate. For example, when loading the magnums in the socket module, it's a good idea to check if the magnum is zero, because that means the local system platform doesn't support it.
This commit is contained in:
parent
ee7e296339
commit
d26d7ae0e4
1028 changed files with 6576 additions and 172777 deletions
11
third_party/python/python.mk
vendored
11
third_party/python/python.mk
vendored
|
@ -76,7 +76,6 @@ THIRD_PARTY_PYTHON_CORE_SRCS = \
|
|||
third_party/python/Python/codecs.c \
|
||||
third_party/python/Python/compile.c \
|
||||
third_party/python/Python/dtoa.c \
|
||||
third_party/python/Python/dup2.c \
|
||||
third_party/python/Python/dynamic_annotations.c \
|
||||
third_party/python/Python/dynload_shlib.c \
|
||||
third_party/python/Python/errors.c \
|
||||
|
@ -192,12 +191,10 @@ $(THIRD_PARTY_PYTHON_A).pkg: \
|
|||
|
||||
$(THIRD_PARTY_PYTHON_OBJS): \
|
||||
OVERRIDE_CFLAGS += \
|
||||
-DNDEBUG \
|
||||
-DPy_BUILD_CORE \
|
||||
-DPLATFORM='"linux"' \
|
||||
-DMULTIARCH='"x86_64-linux-gnu"' \
|
||||
-isystem libc/isystem \
|
||||
-Ithird_party/python \
|
||||
-Ithird_party/python/Include
|
||||
-DPLATFORM='"cosmo"' \
|
||||
-DMULTIARCH='"x86_64-cosmo"'
|
||||
|
||||
o/$(MODE)/third_party/python/Programs/python.o \
|
||||
o/$(MODE)/third_party/python/Python/marshal.o \
|
||||
|
@ -210,7 +207,7 @@ o/$(MODE)/third_party/python/Objects/listobject.o: \
|
|||
|
||||
o/$(MODE)/third_party/python/Python/dynload_shlib.o: \
|
||||
OVERRIDE_CFLAGS += \
|
||||
-DSOABI='"cpython36m-x86_64-linux-gnu"'
|
||||
-DSOABI='"cpython36m-x86_64-cosmopolitan"'
|
||||
|
||||
o/$(MODE)/third_party/python/Python/sysmodule.o: \
|
||||
OVERRIDE_CFLAGS += \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue