mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-25 06:42:27 +00:00
Apply fixes and speedups
This commit is contained in:
parent
7521bf9e73
commit
725f4d79f6
36 changed files with 682 additions and 334 deletions
16
third_party/python/python.mk
vendored
16
third_party/python/python.mk
vendored
|
@ -465,12 +465,12 @@ THIRD_PARTY_PYTHON_STAGE1_A_DIRECTDEPS = \
|
|||
THIRD_PARTY_PYTHON_STAGE1_A_DEPS = \
|
||||
$(call uniq,$(foreach x,$(THIRD_PARTY_PYTHON_STAGE1_A_DIRECTDEPS),$($(x))))
|
||||
|
||||
o//third_party/python/Python/importlib.inc: \
|
||||
o/$(MODE)/third_party/python/Python/importlib.inc: \
|
||||
o/$(MODE)/third_party/python/freeze.com \
|
||||
third_party/python/Lib/importlib/_bootstrap.py
|
||||
@$(COMPILE) -AFREEZE -T$@ $^ $@
|
||||
|
||||
o//third_party/python/Python/importlib_external.inc: \
|
||||
o/$(MODE)/third_party/python/Python/importlib_external.inc: \
|
||||
o/$(MODE)/third_party/python/freeze.com \
|
||||
third_party/python/Lib/importlib/_bootstrap_external.py
|
||||
@$(COMPILE) -AFREEZE -T$@ $^ $@
|
||||
|
@ -1153,8 +1153,8 @@ THIRD_PARTY_PYTHON_STAGE2_A_DEPS = \
|
|||
|
||||
o/$(MODE)/third_party/python/Python/frozen.o: \
|
||||
third_party/python/Python/frozen.c \
|
||||
o//third_party/python/Python/importlib.inc \
|
||||
o//third_party/python/Python/importlib_external.inc
|
||||
o/$(MODE)/third_party/python/Python/importlib.inc \
|
||||
o/$(MODE)/third_party/python/Python/importlib_external.inc
|
||||
|
||||
################################################################################
|
||||
# TESTS
|
||||
|
@ -3714,10 +3714,16 @@ o//third_party/python/Python/ceval.o: \
|
|||
$(THIRD_PARTY_PYTHON_STAGE1_A_OBJS) \
|
||||
$(THIRD_PARTY_PYTHON_STAGE2_A_OBJS): \
|
||||
OVERRIDE_CPPFLAGS += \
|
||||
-DNDEBUG \
|
||||
-DPy_BUILD_CORE \
|
||||
-DMULTIARCH='"x86_64-cosmo"'
|
||||
|
||||
ifneq ($(MODE),dbg)
|
||||
$(THIRD_PARTY_PYTHON_STAGE1_A_OBJS) \
|
||||
$(THIRD_PARTY_PYTHON_STAGE2_A_OBJS): \
|
||||
OVERRIDE_CPPFLAGS += \
|
||||
-DNDEBUG
|
||||
endif
|
||||
|
||||
o/$(MODE)/third_party/python/Python/sysmodule.o: \
|
||||
OVERRIDE_CFLAGS += \
|
||||
-DABIFLAGS='"m"'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue