[FFmpeg-devel] [PATCH] configure: fix clang-cl detection
Wang Bin
wbsecg1 at gmail.com
Wed Apr 18 11:49:11 EEST 2018
2018-04-18 16:27 GMT+08:00 Timo Rothenpieler <timo at rothenpieler.org>:
> 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)
> >> _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>&1 |
> >> awk '\''/including/ { sub(/^.*file: */, ""); gsub(/\\/, "/"); if
> >> (!match($$0, / /)) print "$@:", $$0 }'\'' > $(@:.o=.d)'
> >>
> >>
> > This breaks msvc build because msys's link.exe is tested instead of
> mslink
> > script
>
> Sounds more like an issue with your build environment to me? Make sure
> the msvc build tools take precedence in your PATH.
>
>
I build on windows. My environment is correct. $PATH always starts with
msys2 dirs. This is why mslink exists .
More information about the ffmpeg-devel
mailing list