Exclude .py files in MODE=rel / tiny

This commit is contained in:
Justine Tunney 2021-09-06 19:34:57 -07:00
parent 4f41f2184d
commit dfa0359b50
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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':