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
Some checks failed
Build & Sign Wraith / Build Windows + Sign (push) Failing after 18s
This commit is contained in:
parent
3deb2d6be3
commit
39dc29b048
@ -133,12 +133,15 @@ jobs:
|
|||||||
set(ZLIB_ROOT ${INSTALL_PREFIX})
|
set(ZLIB_ROOT ${INSTALL_PREFIX})
|
||||||
TCEOF
|
TCEOF
|
||||||
|
|
||||||
|
# Force suppress all warnings via environment — FreeRDP cmake overrides CMAKE_C_FLAGS
|
||||||
|
export CFLAGS="-w"
|
||||||
|
export CXXFLAGS="-w"
|
||||||
|
|
||||||
# Configure — minimal client-only build
|
# Configure — minimal client-only build
|
||||||
# -Wno-format suppresses MinGW PRIuz/PRIxz format string warnings
|
|
||||||
cmake -B build -G Ninja \
|
cmake -B build -G Ninja \
|
||||||
-DCMAKE_TOOLCHAIN_FILE=/tmp/mingw-toolchain.cmake \
|
-DCMAKE_TOOLCHAIN_FILE=/tmp/mingw-toolchain.cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_C_FLAGS="-Wno-format -Wno-error -w" \
|
-DCMAKE_C_FLAGS_INIT="-w" \
|
||||||
-DCMAKE_INSTALL_PREFIX=/tmp/freerdp-install \
|
-DCMAKE_INSTALL_PREFIX=/tmp/freerdp-install \
|
||||||
-DBUILD_SHARED_LIBS=ON \
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
-DWITH_CLIENT=OFF \
|
-DWITH_CLIENT=OFF \
|
||||||
@ -162,8 +165,12 @@ jobs:
|
|||||||
-DCHANNEL_URBDRC=OFF \
|
-DCHANNEL_URBDRC=OFF \
|
||||||
-DWITH_OPENH264=OFF
|
-DWITH_OPENH264=OFF
|
||||||
|
|
||||||
# Build
|
# Build — use -v for verbose output on failure
|
||||||
cmake --build build --parallel $(nproc)
|
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
|
cmake --install build
|
||||||
|
|
||||||
echo "=== FreeRDP3 DLLs built ==="
|
echo "=== FreeRDP3 DLLs built ==="
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user