[vlc-devel] [PATCH v2 1/2] contrib: Use -Og instead of -O0

Steve Lhomme robux4 at ycbcr.xyz
Fri Jun 14 08:53:05 CEST 2019


I'd prefer to stick to -O0. I have noticed issues while debugging with 
-Og with clang and PDB. Sometimes variables are "optimized" (unreadable) 
and it does tend to jump up and down when step debugging.

On 2019-06-13 19:34, Marvin Scholz wrote:
> ---
>   contrib/src/main.mak | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/contrib/src/main.mak b/contrib/src/main.mak
> index 3f40b3b485..5177019ba2 100644
> --- a/contrib/src/main.mak
> +++ b/contrib/src/main.mak
> @@ -193,8 +193,8 @@ CXXFLAGS := $(CXXFLAGS) -gcodeview
>   endif
>   
>   ifndef WITH_OPTIMIZATION
> -CFLAGS := $(CFLAGS) -O0
> -CXXFLAGS := $(CXXFLAGS) -O0
> +CFLAGS := $(CFLAGS) -Og
> +CXXFLAGS := $(CXXFLAGS) -Og
>   else
>   CFLAGS := $(CFLAGS) -O2
>   CXXFLAGS := $(CXXFLAGS) -O2
> -- 
> 2.20.1 (Apple Git-117)
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> 


More information about the vlc-devel mailing list