mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
Exclude .py files in MODE=rel / tiny
This commit is contained in:
parent
4f41f2184d
commit
dfa0359b50
2 changed files with 7 additions and 1 deletions
|
@ -74,6 +74,9 @@ CONFIG_CCFLAGS += \
|
||||||
TARGET_ARCH ?= \
|
TARGET_ARCH ?= \
|
||||||
-msse3
|
-msse3
|
||||||
|
|
||||||
|
PYFLAGS += \
|
||||||
|
-B
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Asan Mode
|
# Asan Mode
|
||||||
|
@ -157,6 +160,8 @@ CONFIG_CCFLAGS += \
|
||||||
-fno-align-loops
|
-fno-align-loops
|
||||||
TARGET_ARCH ?= \
|
TARGET_ARCH ?= \
|
||||||
-msse3
|
-msse3
|
||||||
|
PYFLAGS += \
|
||||||
|
-B
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Linux-Only Tiny Mode
|
# Linux-Only Tiny Mode
|
||||||
|
|
3
third_party/python/pyobj.c
vendored
3
third_party/python/pyobj.c
vendored
|
@ -69,7 +69,7 @@ FLAGS\n\
|
||||||
-O0 don't optimize [default]\n\
|
-O0 don't optimize [default]\n\
|
||||||
-O1 remove debug statements\n\
|
-O1 remove debug statements\n\
|
||||||
-O2 remove debug statements and docstrings\n\
|
-O2 remove debug statements and docstrings\n\
|
||||||
-b binary only (don't include .py file)\n\
|
-B binary only (don't include .py file)\n\
|
||||||
-0 zip uncompressed\n\
|
-0 zip uncompressed\n\
|
||||||
-n do nothing\n\
|
-n do nothing\n\
|
||||||
-h help\n\
|
-h help\n\
|
||||||
|
@ -222,6 +222,7 @@ static void
|
||||||
GetOpts(int argc, char *argv[])
|
GetOpts(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int opt;
|
int opt;
|
||||||
|
image_base = IMAGE_BASE_VIRTUAL;
|
||||||
while ((opt = getopt(argc, argv, "hn0Bb:O:o:C:P:")) != -1) {
|
while ((opt = getopt(argc, argv, "hn0Bb:O:o:C:P:")) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'B':
|
case 'B':
|
||||||
|
|
Loading…
Reference in a new issue