[vlc-devel] [PATCH] contrib: ffmpeg: disable some inline assembler in win32 builds with LLVM
Steve Lhomme
robux4 at ycbcr.xyz
Thu Jun 18 10:33:18 CEST 2020
On 2020-06-17 20:23, Rémi Denis-Courmont wrote:
> Le keskiviikkona 17. kesäkuuta 2020, 18.10.17 EEST Steve Lhomme a écrit :
>> Fun fact, it is fine when built in release mode. Probably the -O2 that
>> makes things easier. So I could force this flag for llvm-i686 in debug
>> builds.
>
> This has nothing to do with Win32. Even *VLC* can't build without
> optimisations on Linux/386 due to register shortage. Most likely not FFmpeg
> either.
>
> As noted several times before, compiling with -O0 is _*STUPID*_, especially on
> 386. If you want debugable code, use -Og or equivalent.
From my experience using -Og still has cases where you can't debug some
code. Only -O0 ever worked reliably for me.
More information about the vlc-devel
mailing list