Compare commits
2 Commits
feat/upstr
...
8c6c9f4f42
| Author | SHA1 | Date | |
|---|---|---|---|
|
8c6c9f4f42
|
|||
|
0722dc9e36
|
15
ci-build.sh
15
ci-build.sh
@@ -204,6 +204,21 @@ case "$ARCH" in
|
||||
""
|
||||
)
|
||||
source /etc/profile.d/debuginfod.sh 2>/dev/null || true
|
||||
|
||||
if grep -q 'ID=arch' /etc/os-release 2>/dev/null && [ -f /etc/makepkg.conf ]; then
|
||||
echo "--> [Parity Mode] Simulating Pikaur collision..."
|
||||
|
||||
get_flag() {
|
||||
sed ':a;N;$!ba;s/\\\n[[:space:]]*/ /g' /etc/makepkg.conf | \
|
||||
grep "^$1=" | cut -d'=' -f2- | tr -d '"' | tr -d "'" | xargs
|
||||
}
|
||||
|
||||
export CFLAGS=$(get_flag "CFLAGS")
|
||||
export LDFLAGS=$(get_flag "LDFLAGS")
|
||||
|
||||
echo " Environment CFLAGS: $CFLAGS"
|
||||
echo " Environment LDFLAGS: $LDFLAGS"
|
||||
fi
|
||||
;;
|
||||
darwin*)
|
||||
# 4 configurations for parallel CI
|
||||
|
||||
@@ -387,12 +387,11 @@ AC_SUBST([FORKPTY_LIB])
|
||||
## Default parameters
|
||||
AM_CFLAGS="$AM_CFLAGS -Wall -Wextra -Wformat=2 -Wno-format-zero-length"
|
||||
AM_CFLAGS="$AM_CFLAGS -Wno-deprecated-declarations -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare -Wno-cast-function-type"
|
||||
AM_CFLAGS="$AM_CFLAGS -Wnull-dereference -Wpointer-arith"
|
||||
AM_CFLAGS="$AM_CFLAGS -Wpointer-arith"
|
||||
AM_CFLAGS="$AM_CFLAGS -Wimplicit-function-declaration"
|
||||
AM_CFLAGS="$AM_CFLAGS -Wundef"
|
||||
AM_CFLAGS="$AM_CFLAGS -Wfloat-equal -Wredundant-decls"
|
||||
AM_CFLAGS="$AM_CFLAGS -fstack-protector-strong -fno-common"
|
||||
AM_CFLAGS="$AM_CFLAGS -D_FORTIFY_SOURCE=2"
|
||||
AM_CFLAGS="$AM_CFLAGS -std=gnu99 -ggdb3"
|
||||
|
||||
# GCC-specific warnings (not supported by clang) — test each one
|
||||
|
||||
Reference in New Issue
Block a user