[FFmpeg-devel] Debug builds and if (ARCH_...) linking issues

Hendrik Leppkes h.leppkes at gmail.com
Fri Apr 14 01:05:18 EEST 2017


On Fri, Apr 14, 2017 at 12:00 AM, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> Hi Aaron,
>
> On Thu, Apr 13, 2017 at 4:47 PM, Aaron Levinson <alevinsn at aracnet.com>
> wrote:
>
>> #if ARCH_AARCH64
>>     if (ARCH_AARCH64)
>>         return ff_get_cpu_flags_aarch64();
>> #endif
>>
>
> If you add #if, at least replace the if with it. #if + if is redundant.
>
>
>> Such a script could be reviewed and checked into the source base, then
>> applied to the source base, and possibly reused in the future as necessary.
>
>
> Why not use the script as a preprocessor during compilation? We did that
> for pre-2013 MSVC compilation and that worked """fine""".
>
> Or why not ask Microsoft to add a CLI option to cl.exe for enabling DCE but
> otherwise disabling optimizations? All other compilers seem capable of
> this, so it's odd to see that big Microsoft is incompetent whereas a bunch
> of opensource hippies could do the same 10+ yrs ago.
>

Its not a MSVC-exclusive problem. Many compilers don't perform DCE in
full debug builds, which are as such not possible with ffmpeg, making
debuging sometimes a bit annoying when a bunch of variables are
optimized out and stuff gets inlined.

- Hendrik


More information about the ffmpeg-devel mailing list