Revert some changes of too extensive gardening

Closes #2155
This commit is contained in:
Nomis101 2019-06-21 10:47:32 +02:00 committed by Damiano Galassi
parent 9b57d44414
commit 851f6ca16f
2 changed files with 26 additions and 2 deletions

19
make/config.guess vendored
View File

@ -1268,11 +1268,17 @@ EOF
SX-ACE:SUPER-UX:*:*)
echo sxace-nec-superux${UNAME_RELEASE}
exit ;;
Power*:Rhapsody:*:*)
echo powerpc-apple-rhapsody${UNAME_RELEASE}
exit ;;
*:Rhapsody:*:*)
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
exit ;;
*:Darwin:*:*)
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
eval $set_cc_for_build
if test "$UNAME_PROCESSOR" = unknown ; then
UNAME_PROCESSOR=x86_64
UNAME_PROCESSOR=powerpc
fi
if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
@ -1282,15 +1288,24 @@ EOF
then
case $UNAME_PROCESSOR in
i386) UNAME_PROCESSOR=x86_64 ;;
powerpc) UNAME_PROCESSOR=powerpc64 ;;
esac
fi
# On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
grep IS_PPC >/dev/null
then
UNAME_PROCESSOR=powerpc
fi
fi
elif test "$UNAME_PROCESSOR" = i386 ; then
# Avoid executing cc on OS X 10.9, as it ships with a stub
# that puts up a graphical alert prompting to install
# developer tools. Any system running Mac OS X 10.7 or
# later (Darwin 11 and later) is required to have a 64-bit
# processor.
# processor. This is not true of the ARM version of Darwin
# that Apple uses in portable devices.
UNAME_PROCESSOR=x86_64
fi
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}

View File

@ -112,6 +112,15 @@ end
## create work queue
queue = Queue.new
## create xcconfig list
xclist = []
case
when RUBY_PLATFORM =~ /darwin11/
xclist += 'native osx106.i386 osx106.x86_64 osx107.i386 osx107.x86_64'.split
when RUBY_PLATFORM =~ /darwin10/
xclist += 'native osx106.i386 osx106.x86_64'.split
end
## fill queue
[['release',''],['debug','--debug=max --optimize=none']].each do |debug|
[BuildTerminal, BuildLaunch].each do |kind|