[vlc-devel] [PATCH] configure: enable debug by default

Rémi Denis-Courmont remi at remlab.net
Thu Feb 7 14:52:17 CET 2019


Hi,

This patch does not change builds with explicitly enabled or disabled debug, AFAICT. So you don't need to remove --enable-debug anywhere.

I have no strong opinion for or against this change.

Le 7 février 2019 14:26:12 GMT+02:00, "Hugo Beauzée-Luyssen" <hugo at beauzee.fr> a écrit :
>On Thu, Feb 7, 2019, at 1:23 PM, Thomas Guillem wrote:
>> It seems that lot of developers forget to enable this option. This
>option
>> enables assert and other debug codes (like the very useful
>thread/mutex debug
>> code) that should be mandatory when you dev on VLC.
>> 
>> This is quite a big change: all VLC maintainers should now add
>> "--disable-debug" when they release a stable version of VLC.
>> ---
>>  configure.ac | 6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
>> 
>> diff --git a/configure.ac b/configure.ac
>> index 9453dd852b..4f4b6b395a 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -979,9 +979,9 @@ dnl
>>  dnl  Debugging mode
>>  dnl
>>  AC_ARG_ENABLE([debug],
>> -  AS_HELP_STRING([--enable-debug],
>> -    [build with run-time assertions (default disabled)]),,
>> -  [enable_debug="no"])
>> +  AS_HELP_STRING([--disable-debug],
>> +    [build with run-time assertions (default enabled)]),,
>> +  [enable_debug="yes"])
>>  AH_TEMPLATE(NDEBUG,
>>              [Define to 1 if debug code should NOT be compiled])
>>  AS_IF([test "${enable_debug}" != "no"], [
>
>I like the idea, but this implies we go through all our build scripts
>(for instance, the win32 one uses --enable-debug) and adjust
>accordingly.
>Regardless of the patch being applied or not, we might want to
>explicitly tweak those scripts to explicitly provide
>--enable/--disable-debug.
>
>-- 
>  Hugo Beauzée-Luyssen
>  hugo at beauzee.fr
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190207/51f611f7/attachment.html>


More information about the vlc-devel mailing list