Skip to content

Commit

Permalink
Skip comp.libs checking on host for canadian
Browse files Browse the repository at this point in the history
... they all want to run the binaries they produced, which fails
when build!=host.

Signed-off-by: Alexey Neyman <stilor@att.net>
  • Loading branch information
stilor committed Feb 11, 2017
1 parent 7dfae65 commit c8e8281
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 12 deletions.
9 changes: 7 additions & 2 deletions scripts/build/companion_libs/050-zlib.sh
Expand Up @@ -97,8 +97,13 @@ do_zlib_backend() {
CT_DoExecLog ALL make ${JOBSFLAGS}

if [ "${CT_COMPLIBS_CHECK}" = "y" ]; then
CT_DoLog EXTRA "Checking zlib"
CT_DoExecLog ALL make ${JOBSFLAGS} -s check
if [ "${host}" = "${CT_BUILD}" ]; then
CT_DoLog EXTRA "Checking zlib"
CT_DoExecLog ALL make ${JOBSFLAGS} -s check
else
# Cannot run host binaries on build in a canadian cross
CT_DoLog EXTRA "Skipping check for zlib on the host"
fi
fi

CT_DoLog EXTRA "Installing zlib"
Expand Down
9 changes: 7 additions & 2 deletions scripts/build/companion_libs/100-gmp.sh
Expand Up @@ -106,8 +106,13 @@ do_gmp_backend() {
CT_DoExecLog ALL make ${JOBSFLAGS}

if [ "${CT_COMPLIBS_CHECK}" = "y" ]; then
CT_DoLog EXTRA "Checking GMP"
CT_DoExecLog ALL make ${JOBSFLAGS} -s check
if [ "${host}" = "${CT_BUILD}" ]; then
CT_DoLog EXTRA "Checking GMP"
CT_DoExecLog ALL make ${JOBSFLAGS} -s check
else
# Cannot run host binaries on build in a canadian cross
CT_DoLog EXTRA "Skipping check for GMP on the host"
fi
fi

CT_DoLog EXTRA "Installing GMP"
Expand Down
9 changes: 7 additions & 2 deletions scripts/build/companion_libs/110-mpfr.sh
Expand Up @@ -149,8 +149,13 @@ do_mpfr_backend() {
CT_DoExecLog ALL make ${JOBSFLAGS}

if [ "${CT_COMPLIBS_CHECK}" = "y" ]; then
CT_DoLog EXTRA "Checking MPFR"
CT_DoExecLog ALL make ${JOBSFLAGS} -s check
if [ "${host}" = "${CT_BUILD}" ]; then
CT_DoLog EXTRA "Checking MPFR"
CT_DoExecLog ALL make ${JOBSFLAGS} -s check
else
# Cannot run host binaries on build in a canadian cross
CT_DoLog EXTRA "Skipping check for MPFR on the host"
fi
fi

CT_DoLog EXTRA "Installing MPFR"
Expand Down
9 changes: 7 additions & 2 deletions scripts/build/companion_libs/121-isl.sh
Expand Up @@ -115,8 +115,13 @@ do_isl_backend() {
CT_DoExecLog ALL make ${JOBSFLAGS}

if [ "${CT_COMPLIBS_CHECK}" = "y" ]; then
CT_DoLog EXTRA "Checking ISL"
CT_DoExecLog ALL make ${JOBSFLAGS} -s check
if [ "${host}" = "${CT_BUILD}" ]; then
CT_DoLog EXTRA "Checking ISL"
CT_DoExecLog ALL make ${JOBSFLAGS} -s check
else
# Cannot run host binaries on build in a canadian cross
CT_DoLog EXTRA "Skipping check for ISL on the host"
fi
fi

CT_DoLog EXTRA "Installing ISL"
Expand Down
9 changes: 7 additions & 2 deletions scripts/build/companion_libs/130-cloog.sh
Expand Up @@ -112,8 +112,13 @@ do_cloog_backend() {
CT_DoExecLog ALL make ${JOBSFLAGS}

if [ "${CT_COMPLIBS_CHECK}" = "y" ]; then
CT_DoLog EXTRA "Checking CLooG"
CT_DoExecLog ALL make ${JOBSFLAGS} -s check
if [ "${host}" = "${CT_BUILD}" ]; then
CT_DoLog EXTRA "Checking CLooG"
CT_DoExecLog ALL make ${JOBSFLAGS} -s check
else
# Cannot run host binaries on build in a canadian cross
CT_DoLog EXTRA "Skipping check for CLooG on the host"
fi
fi

CT_DoLog EXTRA "Installing CLooG"
Expand Down
9 changes: 7 additions & 2 deletions scripts/build/companion_libs/140-mpc.sh
Expand Up @@ -100,8 +100,13 @@ do_mpc_backend() {
CT_DoExecLog ALL make ${JOBSFLAGS}

if [ "${CT_COMPLIBS_CHECK}" = "y" ]; then
CT_DoLog EXTRA "Checking MPC"
CT_DoExecLog ALL make ${JOBSFLAGS} -s check
if [ "${host}" = "${CT_BUILD}" ]; then
CT_DoLog EXTRA "Checking MPC"
CT_DoExecLog ALL make ${JOBSFLAGS} -s check
else
# Cannot run host binaries on build in a canadian cross
CT_DoLog EXTRA "Skipping check for MPC on the host"
fi
fi

CT_DoLog EXTRA "Installing MPC"
Expand Down

0 comments on commit c8e8281

Please sign in to comment.