]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-131591: Make --without-remote-debug work (GH-135925) (GH-135931)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 25 Jun 2025 12:08:27 +0000 (14:08 +0200)
committerGitHub <noreply@github.com>
Wed, 25 Jun 2025 12:08:27 +0000 (12:08 +0000)
gh-131591: Make --without-remote-debug work (GH-135925)

The feature is checked using `defined(Py_REMOTE_DEBUG)`; defining
the macro (even as `0`) enables it.
(cherry picked from commit c2f2fd4eca3b342e781355f9b9e716827fc81a5b)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
configure
configure.ac

index bc996235c700b5c2cd08df4298226c0f0c9dfb23..827df044daf955d51398c5456e6625a4ec87a2d9 100755 (executable)
--- a/configure
+++ b/configure
@@ -29933,9 +29933,6 @@ printf "%s\n" "#define Py_REMOTE_DEBUG 1" >>confdefs.h
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 printf "%s\n" "yes" >&6; }
 else
-
-printf "%s\n" "#define Py_REMOTE_DEBUG 0" >>confdefs.h
-
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 printf "%s\n" "no" >&6; }
 fi
index 47198c8722e872d3aeca3a8190c27fcd89b1df1c..a57205ede02ef07a7f4f46160a7192f1c969df7d 100644 (file)
@@ -7168,8 +7168,6 @@ if test "$with_remote_debug" = yes; then
     [Define if you want to enable remote debugging support.])
   AC_MSG_RESULT([yes])
 else
-  AC_DEFINE([Py_REMOTE_DEBUG], [0],
-    [Define if you want to enable remote debugging support.])
   AC_MSG_RESULT([no])
 fi