fix: force CFLAGS=-w via env + add verbose output on FreeRDP build failure
Some checks failed
Build & Sign Wraith / Build Windows + Sign (push) Failing after 18s

This commit is contained in:
Vantz Stockwell 2026-03-17 09:33:13 -04:00
parent 3deb2d6be3
commit 39dc29b048

View File

@ -133,12 +133,15 @@ jobs:
set(ZLIB_ROOT ${INSTALL_PREFIX})
TCEOF
# Force suppress all warnings via environment — FreeRDP cmake overrides CMAKE_C_FLAGS
export CFLAGS="-w"
export CXXFLAGS="-w"
# Configure — minimal client-only build
# -Wno-format suppresses MinGW PRIuz/PRIxz format string warnings
cmake -B build -G Ninja \
-DCMAKE_TOOLCHAIN_FILE=/tmp/mingw-toolchain.cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="-Wno-format -Wno-error -w" \
-DCMAKE_C_FLAGS_INIT="-w" \
-DCMAKE_INSTALL_PREFIX=/tmp/freerdp-install \
-DBUILD_SHARED_LIBS=ON \
-DWITH_CLIENT=OFF \
@ -162,8 +165,12 @@ jobs:
-DCHANNEL_URBDRC=OFF \
-DWITH_OPENH264=OFF
# Build
cmake --build build --parallel $(nproc)
# Build — use -v for verbose output on failure
cmake --build build --parallel $(nproc) -- -v 2>&1 || {
echo "=== Build failed — retrying with single thread for clear error output ==="
cmake --build build -j1 -- -v 2>&1 | tail -50
exit 1
}
cmake --install build
echo "=== FreeRDP3 DLLs built ==="