aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-06-20 23:48:00 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-06-20 23:48:02 +0200
commit917c987f81e19c80028faf2cd82bc91fda7240ea (patch)
treebcdcd674af3746ab60872ffa7feb35cbfe7d4d50 /contrib
parentc977afad6f270289f363ca2038104af8aaf2588d (diff)
jenkins.sh: Use --enable-werror only when iu support is disabled
The flag cannot be enabled in all cases because current osmo-iuh header contain compilation warnings which are then propagated to this project when building against them. Change-Id: Ia4285a88af6d4adfba08c055c6734f9d82c1a5a4
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/jenkins.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index a32be1e7..7b8cba35 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -29,11 +29,14 @@ osmo-build-dep.sh libosmo-abis
osmo-build-dep.sh libosmo-netif
osmo-build-dep.sh osmo-ggsn
+enable_werror=""
if [ "x$IU" = "x--enable-iu" ]; then
osmo-build-dep.sh libosmo-sccp
osmo-build-dep.sh libasn1c
#osmo-build-dep.sh asn1c aper-prefix # only needed for make regen in osmo-iuh
osmo-build-dep.sh osmo-iuh
+else
+ enable_werror="--enable-werror"
fi
set +x
@@ -46,12 +49,12 @@ set -x
cd "$base"
autoreconf --install --force
-./configure --enable-sanitize $SMPP $MGCP $IU --enable-external-tests
+./configure --enable-sanitize $enable_werror $SMPP $MGCP $IU --enable-external-tests
$MAKE $PARALLEL_MAKE
LD_LIBRARY_PATH="$inst/lib" $MAKE check \
|| cat-testlogs.sh
LD_LIBRARY_PATH="$inst/lib" \
- DISTCHECK_CONFIGURE_FLAGS="--enable-osmo-bsc --enable-nat $SMPP $MGCP $IU --enable-external-tests" \
+ DISTCHECK_CONFIGURE_FLAGS="$enable_werror --enable-osmo-bsc --enable-nat $SMPP $MGCP $IU --enable-external-tests" \
$MAKE distcheck \
|| cat-testlogs.sh