osxcross/tools/trap_exit.sh
Thomas Pöchtrager 68bdbd9452 New:
* Added support for TAPIv3 stubs (including "zippering" target)
* Added support for MacOSX SDKs up to 10.14
* Added new SDK packaging script for SDKs that end with ".xip" (tools/gen_sdk_package_pbzx.sh <xcode.xip>) (tested up to Xcode 10.2.1)
* Updated cctools to 921 and ld64 to 409.12

Fixed:
* Implemented fix for https://github.com/tpoechtrager/osxcross/issues/171
* Implemented fix for https://github.com/tpoechtrager/osxcross/issues/178
* Implemented fix for https://github.com/tpoechtrager/osxcross/issues/182

Changed:
* cctools, ld64, apple-libtapi and xar are now "git clone"'d and no longer come with OSXCross.

Removed:
* Support for Cygwin and *BSD (besides FreeBSD)
* Support for building OSXCross with GCC
2019-06-01 19:57:44 +02:00

31 lines
793 B
Bash
Executable File

#!/usr/bin/env bash
function check_for_bug_1242300()
{
if [ -e /etc/issue ]; then
if [ "`grep -i ubuntu.13.10 /etc/issue`" ]; then
echo "Ubuntu 13.10 detected. if there was a 'configure:' error"
echo "please see https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1242300"
fi
fi
}
function _exit()
{
EC=$?
if [ $EC -ne 0 ]; then
test -z "$SCRIPT" && SCRIPT=`basename $0`
echo ""
echo "exiting with abnormal exit code ($EC)"
test -n "$OCDEBUG" || echo "run 'OCDEBUG=1 ./$SCRIPT' to enable debug messages"
if [ -n "$CURRENT_BUILD_PROJECT_NAME" ]; then
## Build failed. Rebuild everything ##
rm -f "build/*_built_successfully"
fi
echo ""
test $SCRIPT = "build.sh" && check_for_bug_1242300
fi
}
trap _exit EXIT