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

Rémi Denis-Courmont remi at remlab.net
Fri Jun 14 09:14:51 CEST 2019


Ack.

VLC itself cannot even compile with O0 due to shortage of registers on x86. More importantly, we want debug to be as close as possible to normal code, and that's the whole point of Og.

Le 14 juin 2019 01:34:08 GMT+08:00, Marvin Scholz <epirat07 at gmail.com> a écrit :
>---
> 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

-- 
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/20190614/5a9a120b/attachment.html>


More information about the vlc-devel mailing list