Skip to content

Commit d1af426

Browse files
committed
debug
1 parent 39507b6 commit d1af426

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.ci/scripts/wheel/pre_build_script.sh

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,28 @@ tar -C /tmp -xf "$TARBALL"
6363

6464
cd "$BUILD_DIR"
6565

66-
# Unset it to keep glibc configure happy
66+
# Unset to keep glibc configure happy
6767
unset LD_LIBRARY_PATH
68-
CFLAGS="-O2 -fPIC -fcommon \
69-
-Wno-error=array-parameter \
70-
-Wno-error=array-bounds \
71-
-Wno-error=maybe-uninitialized \
72-
-Wno-error=zero-length-bounds \
73-
-Wno-error=stringop-overflow \
74-
-Wno-error=deprecated-declarations \
75-
-Wno-error=use-after-free \
76-
-Wno-error=builtin-declaration-mismatch \
77-
-Wno-error"
68+
69+
# Suppress warnings that GCC 13+ promotes to errors
70+
COMMON_FLAGS="-O2 -fPIC -fcommon \
71+
-Wno-error=array-parameter \
72+
-Wno-error=array-bounds \
73+
-Wno-error=maybe-uninitialized \
74+
-Wno-error=zero-length-bounds \
75+
-Wno-error=stringop-overflow \
76+
-Wno-error=deprecated-declarations \
77+
-Wno-error=use-after-free \
78+
-Wno-error=builtin-declaration-mismatch \
79+
-Wno-error"
80+
81+
export CFLAGS="$COMMON_FLAGS"
82+
export CPPFLAGS="$COMMON_FLAGS"
7883

7984
../glibc-$GLIBC_VERSION/configure \
8085
--prefix="$PREFIX" \
8186
--without-selinux
8287

83-
84-
8588
make -j"$(nproc)"
8689
make install
8790

0 commit comments

Comments
 (0)