public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/31099] New: [gdb/build] -DNDEBUG missing in python flags of release build
@ 2023-11-30  8:45 vries at gcc dot gnu.org
  2023-11-30 11:22 ` [Bug build/31099] " vries at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2023-11-30  8:45 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31099

            Bug ID: 31099
           Summary: [gdb/build] -DNDEBUG missing in python flags of
                    release build
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

Before commit db6878ac553 ("Move sourcing of development.sh to GDB_AC_COMMON")
we have:
...
. $srcdir/../bfd/development.sh
  ...
    $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
...
but after:
...
    $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
  ...
. $srcdir/../bfd/development.sh
...

Curiously, while this gives an error:
...
$  && echo bla
bash: syntax error near unexpected token `&&'
$  || echo bla
bash: syntax error near unexpected token `||'
...
an empty var seems to be handled similar to ':' or 'true':
...
$ $empty && echo bla
bla
$ $empty || echo bla
$ 
...

So, the -DNDEBUG is not added in a release branch.

Regression since gdb 10.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-30 20:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-30  8:45 [Bug build/31099] New: [gdb/build] -DNDEBUG missing in python flags of release build vries at gcc dot gnu.org
2023-11-30 11:22 ` [Bug build/31099] " vries at gcc dot gnu.org
2023-11-30 20:31 ` cvs-commit at gcc dot gnu.org
2023-11-30 20:33 ` vries at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).