[vlc-commits] [Git][videolan/vlc][3.0.x] CI: build some targets with strict C11/C++11 support
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Jul 16 04:52:25 UTC 2026
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
01011644 by Steve Lhomme at 2026-07-15T06:42:11+02:00
CI: build some targets with strict C11/C++11 support
The 3.0 branch is supposed to build with a C11 and C++11 compiler (plus GNU extensions).
We target a GCC target and a Clang target.
- - - - -
1 changed file:
- extras/ci/gitlab-ci.yml
Changes:
=====================================
extras/ci/gitlab-ci.yml
=====================================
@@ -116,6 +116,9 @@ variables:
if [ "${CI_COMMIT_BRANCH}" = "3.0.x" -a "${CI_PROJECT_PATH}" = "videolan/vlc" ]; then
EXTRA_BUILD_FLAGS="${EXTRA_BUILD_FLAGS} -c"
fi
+ if [ -n "${STRICT_COMPILER}" ]; then
+ export CONFIGFLAGS="CFLAGS=-std=gnu11 CXXFLAGS=-std=gnu++11"
+ fi
extras/package/win32/build.sh -a $HOST_ARCH $EXTRA_BUILD_FLAGS $LIBVLC_EXTRA_BUILD_FLAGS $UWP_EXTRA_BUILD_FLAGS
win32:
@@ -136,6 +139,7 @@ win64-arm-llvm:
name: $VLC_WIN_LLVM_UCRT_IMAGE
variables:
<<: *variables-win64-arm
+ STRICT_COMPILER: yes
uwp64-libvlc-llvm:
extends: .win-common
@@ -314,6 +318,9 @@ debian:
cd ../../
# Build VLC
+ export CFLAGS="$CFLAGS -std=gnu11"
+ export CXXFLAGS="$CXXFLAGS -std=gnu++11"
+
./bootstrap
./configure
make -j$NCPU
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/010116448cd55f8c95ba98745f38f9d2762b0766
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/010116448cd55f8c95ba98745f38f9d2762b0766
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list