[vlc-commits] [Git][videolan/vlc][master] configure: Fix parsing of compiler version

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sat May 31 09:11:36 UTC 2025



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
e5433ad2 by Claudio Cambra at 2025-05-31T08:39:08+00:00
configure: Fix parsing of compiler version

Avoids grabbing warnings on invocation of the target compiler, e.g.

#define VLC_COMPILER "clang: warning: argument unused during compilation: '-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk' [-Wunused-command-line-argument]"

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- configure.ac


Changes:

=====================================
configure.ac
=====================================
@@ -4900,7 +4900,7 @@ AS_IF([test -z "$VLC_COMPILE_HOST"],[
    VLC_COMPILE_HOST=`hostname -f 2>/dev/null || hostname`
 ])
 AC_DEFINE_UNQUOTED([VLC_COMPILE_HOST], "$VLC_COMPILE_HOST", [host which ran configure])
-AC_DEFINE_UNQUOTED([VLC_COMPILER], "`$CC -v 2>&1 | tail -n 1 | sed -e 's/ *$//'`", [compiler])
+AC_DEFINE_UNQUOTED([VLC_COMPILER], "`$CC -v 2>&1 | grep -i 'version ' | tail -n 1 | sed -e 's/ *$//'`", [compiler])
 dnl
 dnl  Handle substvars that use $(top_srcdir)
 dnl



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e5433ad224011cae56645e76a119ebd2b6f789d0

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e5433ad224011cae56645e76a119ebd2b6f789d0
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list