Skip to content

Commit

Permalink
pythongh-120671: Fix PY_CHECK_CC_WARNING() in configure.ac (python#12…
Browse files Browse the repository at this point in the history
…0822)

Add missing space in AS_VAR_APPEND() on CFLAGS.
  • Loading branch information
allsey87 authored Jun 25, 2024
1 parent fd0f814 commit 2106c9b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix failing configure tests due to a missing space when appending to CFLAGS.
16 changes: 8 additions & 8 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2437,7 +2437,7 @@ AC_DEFUN([PY_CHECK_CC_WARNING], [
AS_VAR_PUSHDEF([py_var], [ac_cv_$1_]m4_normalize($2)[_warning])
AC_CACHE_CHECK([m4_ifblank([$3], [if we can $1 $CC $2 warning], [$3])], [py_var], [
AS_VAR_COPY([py_cflags], [CFLAGS])
AS_VAR_APPEND([CFLAGS], ["-W$2 -Werror"])
AS_VAR_APPEND([CFLAGS], [" -W$2 -Werror"])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
[AS_VAR_SET([py_var], [yes])],
[AS_VAR_SET([py_var], [no])])
Expand Down

0 comments on commit 2106c9b

Please sign in to comment.