mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +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 ?= \
|
||||
-msse3
|
||||
|
||||
PYFLAGS += \
|
||||
-B
|
||||
|
||||
endif
|
||||
|
||||
# Asan Mode
|
||||
|
@ -157,6 +160,8 @@ CONFIG_CCFLAGS += \
|
|||
-fno-align-loops
|
||||
TARGET_ARCH ?= \
|
||||
-msse3
|
||||
PYFLAGS += \
|
||||
-B
|
||||
endif
|
||||
|
||||
# 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\
|
||||
-O1 remove debug statements\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\
|
||||
-n do nothing\n\
|
||||
-h help\n\
|
||||
|
@ -222,6 +222,7 @@ static void
|
|||
GetOpts(int argc, char *argv[])
|
||||
{
|
||||
int opt;
|
||||
image_base = IMAGE_BASE_VIRTUAL;
|
||||
while ((opt = getopt(argc, argv, "hn0Bb:O:o:C:P:")) != -1) {
|
||||
switch (opt) {
|
||||
case 'B':
|
||||
|
|
Loading…
Reference in a new issue