summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-03-29 20:44:48 -0400
committerMike Gilbert <floppym@gentoo.org>2020-04-01 19:51:44 -0400
commit95577dd5076a8e9864e82879fd3af97cf63fcfe9 (patch)
treeaeadf524da618cb20ea282af0d64436b22dbf2e3 /dev-perl/Sys-Hostname-Long/Sys-Hostname-Long-1.500.0.ebuild
parentmedia-fonts/noto-emoji: Fix license (diff)
downloadgentoo-master.tar.gz
gentoo-master.tar.bz2
gentoo-master.zip
cmake.eclass: do not append -DNDEBUG to CPPFLAGSHEADmaster
The NDEBUG macro turns the assert() function into a noop. This gives a small performance boost, but may allow subtle programming errors to go unnoticed. This code was added back in 2008, when we started passing -DCMAKE_BUILD_TYPE=None instead of Release or Debug. It probably tries to mimic a default behavior of Release type builds. Other common build systems do not do this by default. For example, autoconf's AC_HEADER_ASSERT macro only sets NDEBUG if --disable-assert is passed to configure (it defaults to enabled). It is better to let users add this to CPPFLAGS themselves if they really want to save those few CPU cycles. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'dev-perl/Sys-Hostname-Long/Sys-Hostname-Long-1.500.0.ebuild')
0 files changed, 0 insertions, 0 deletions