Skip to content

Commit

Permalink
bpo-46023: Fix makesetup handling of disabled rule (GH-30001)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran committed Dec 10, 2021
1 parent 74b23c9 commit 036bbb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
@@ -0,0 +1,2 @@
:program:`makesetup` no longer builds extensions that have been marked as
*disabled*. This allows users to disable modules in ``Modules/Setup.local``.
3 changes: 3 additions & 0 deletions Modules/makesetup
Expand Up @@ -206,6 +206,9 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
cpps="\$(MODULE_${mods_upper}_CFLAGS)"
libs="\$(MODULE_${mods_upper}_LDFLAGS)"
fi
case $DISABLED in
*$mods*) doconfig=disabled;;
esac
case $doconfig in
yes)
LIBS="$LIBS $libs"
Expand Down

0 comments on commit 036bbb1

Please sign in to comment.