Re: [FFmpeg-devel] [PATCH] configure: fix clang-cl detection

2018-04-19 Thread Hendrik Leppkes
On Thu, Apr 19, 2018 at 4:21 PM, Derek Buitenhuis wrote: > On 4/18/2018 9:27 AM, Timo Rothenpieler wrote: >> On 18.04.2018 10:05, Wang Bin wrote: -elif $_cc -nologo- 2>&1 | grep -q Microsoft; then +elif $_cc -nologo- 2>&1 | grep -q Microsoft

Re: [FFmpeg-devel] [PATCH] configure: fix clang-cl detection

2018-04-19 Thread Derek Buitenhuis
On 4/18/2018 9:27 AM, Timo Rothenpieler wrote: > On 18.04.2018 10:05, Wang Bin wrote: >>> >>> >>> -elif $_cc -nologo- 2>&1 | grep -q Microsoft; then >>> +elif $_cc -nologo- 2>&1 | grep -q Microsoft || $_cc -v 2>&1 | grep -q >>> clang && $_cc -? > /dev/null 2>&1; then >>>

Re: [FFmpeg-devel] [PATCH] configure: fix clang-cl detection

2018-04-19 Thread Hendrik Leppkes
On Wed, Apr 18, 2018 at 11:08 AM, Hendrik Leppkes wrote: > On Thu, Feb 1, 2018 at 11:52 AM, Alexander Bilyak > wrote: >> When using clang-cl it expects parameters passed in MSVC-style, so >> appropriate toolchain should be selected. >> As soon as

Re: [FFmpeg-devel] [PATCH] configure: fix clang-cl detection

2018-04-18 Thread Hendrik Leppkes
On Thu, Feb 1, 2018 at 11:52 AM, Alexander Bilyak wrote: > When using clang-cl it expects parameters passed in MSVC-style, so > appropriate toolchain should be selected. > As soon as both clang and clang-cl report themselfs as "clang" with -v option > the only chance

Re: [FFmpeg-devel] [PATCH] configure: fix clang-cl detection

2018-04-18 Thread Wang Bin
2018-04-18 16:27 GMT+08:00 Timo Rothenpieler : > On 18.04.2018 10:05, Wang Bin wrote: > >> > >> > >> -elif $_cc -nologo- 2>&1 | grep -q Microsoft; then > >> +elif $_cc -nologo- 2>&1 | grep -q Microsoft || $_cc -v 2>&1 | grep > -q > >> clang && $_cc -? > /dev/null

Re: [FFmpeg-devel] [PATCH] configure: fix clang-cl detection

2018-04-18 Thread Timo Rothenpieler
On 18.04.2018 10:05, Wang Bin wrote: >> >> >> -elif $_cc -nologo- 2>&1 | grep -q Microsoft; then >> +elif $_cc -nologo- 2>&1 | grep -q Microsoft || $_cc -v 2>&1 | grep -q >> clang && $_cc -? > /dev/null 2>&1; then >> _type=msvc >> _ident=$($_cc 2>&1 | head -n1) >>

Re: [FFmpeg-devel] [PATCH] configure: fix clang-cl detection

2018-04-18 Thread Wang Bin
> > > -elif $_cc -nologo- 2>&1 | grep -q Microsoft; then > +elif $_cc -nologo- 2>&1 | grep -q Microsoft || $_cc -v 2>&1 | grep -q > clang && $_cc -? > /dev/null 2>&1; then > _type=msvc > _ident=$($_cc 2>&1 | head -n1) > _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS)

Re: [FFmpeg-devel] [PATCH] configure: fix clang-cl detection

2018-04-15 Thread Michael Niedermayer
On Fri, Apr 13, 2018 at 09:51:10PM +, Dale Curtis wrote: > lgtm, I was able to build ffmpeg for windows on Linux with this patch by > following my notes here: > > https://bugs.chromium.org/p/chromium/issues/detail?id=783021#c6 applied thanks [...] -- Michael GnuPG fingerprint:

Re: [FFmpeg-devel] [PATCH] configure: fix clang-cl detection

2018-04-13 Thread Dale Curtis
lgtm, I was able to build ffmpeg for windows on Linux with this patch by following my notes here: https://bugs.chromium.org/p/chromium/issues/detail?id=783021#c6 - dale On Thu, Feb 1, 2018 at 2:52 AM Alexander Bilyak wrote: > When using clang-cl it expects

[FFmpeg-devel] [PATCH] configure: fix clang-cl detection

2018-02-01 Thread Alexander Bilyak
When using clang-cl it expects parameters passed in MSVC-style, so appropriate toolchain should be selected. As soon as both clang and clang-cl report themselfs as "clang" with -v option the only chance to detect clang-cl is passing -? option to both which is valid for clang-cl.exe and not for