bpo-46023: Skip build if module is marked as DISABLED (GH-30100)

This commit is contained in:
Christian Heimes 2021-12-14 16:42:46 +02:00 committed by GitHub
parent d46d08d947
commit 74821b3053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@
# ---
# Built-in modules required to get a functioning interpreter;
# cannot be built as shared!
*static*
# module C APIs are used in core
atexit atexitmodule.c

View File

@ -207,7 +207,10 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
libs="\$(MODULE_${mods_upper}_LDFLAGS)"
fi
case $DISABLED in
*$mods*) doconfig=disabled;;
*$mods*)
# disabled by previous rule / Setup file
continue
;;
esac
case $doconfig in
yes)