forked from pool/gcc13
osc copypac from project:devel:gcc:next package:gcc13 revision:214
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=1
This commit is contained in:
38
check-build.sh
Normal file
38
check-build.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) 2003,2005 SUSE Linux Products GmbH, Germany. All rights reserved.
|
||||
#
|
||||
# Authors: Thorsten Kukuk <kukuk@suse.de>
|
||||
#
|
||||
# this script use the following variable(s):
|
||||
#
|
||||
# - $BUILD_BASENAME
|
||||
#
|
||||
|
||||
case $BUILD_BASENAME in
|
||||
*ppc*)
|
||||
# Our biarch 32-bit compiler needs to be build on a 64-bit machine,
|
||||
# otherwise some configure checks fail.
|
||||
# Note that we cannot use uname here since powerpc32 was invoked
|
||||
# already.
|
||||
grep 'series64\|ppc64' /proc/version > /dev/null
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "build does not work on `hostname` for gcc"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
*x86_64*)
|
||||
#if [ `ulimit -v` -le 740000 ] ; then
|
||||
# echo "build does not work on ("`hostname`" for gcc)"
|
||||
# exit 1
|
||||
#fi
|
||||
if [ `getconf _NPROCESSORS_CONF` -lt 2 ] ; then
|
||||
echo "build does not work on `hostname` for gcc"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user