[FFmpeg-cvslog] configure: Get the correct ident for clang-cl.exe
Carl Eugen Hoyos
git at videolan.org
Fri Mar 27 00:49:07 EET 2020
ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Thu Mar 26 00:00:10 2020 +0100| [9f1d2f47db0112d41dbc423c9215ff886512efd3] | committer: Carl Eugen Hoyos
configure: Get the correct ident for clang-cl.exe
Instead of "No input file specified"
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9f1d2f47db0112d41dbc423c9215ff886512efd3
---
configure | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 90aaab92a9..aae9818d70 100755
--- a/configure
+++ b/configure
@@ -4663,7 +4663,11 @@ probe_cc(){
_ld_path='-libpath:'
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 | tr -d '\r')
+ if $_cc -nologo- 2>&1 | grep -q Microsoft; then
+ _ident=$($_cc 2>&1 | head -n1 | tr -d '\r')
+ else
+ _ident=$($_cc --version 2>/dev/null | head -n1 | tr -d '\r')
+ fi
_DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>&1 | awk '\''/including/ { sub(/^.*file: */, ""); gsub(/\\/, "/"); if (!match($$0, / /)) print "$@:", $$0 }'\'' > $(@:.o=.d)'
_DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -showIncludes -Zs'
_cflags_speed="-O2"
More information about the ffmpeg-cvslog
mailing list