2015-08-31 21:02:38 +02:00
|
|
|
#!/usr/bin/env bash
|
2017-01-18 10:47:13 +01:00
|
|
|
#
|
|
|
|
# Build and install the `llvm-dsymutil` tool required for debugging.
|
|
|
|
#
|
|
|
|
# Please refer to README.DEBUGGING.md for details.
|
|
|
|
#
|
2015-08-31 21:02:38 +02:00
|
|
|
|
|
|
|
pushd "${0%/*}" &>/dev/null
|
|
|
|
|
|
|
|
DESC="llvm-dsymutil"
|
|
|
|
source tools/tools.sh
|
|
|
|
eval $(tools/osxcross_conf.sh)
|
|
|
|
|
|
|
|
require git
|
|
|
|
require cmake
|
|
|
|
|
|
|
|
pushd $OSXCROSS_BUILD_DIR &>/dev/null
|
|
|
|
|
2019-06-01 19:57:44 +02:00
|
|
|
get_sources https://github.com/tpoechtrager/llvm-dsymutil.git master
|
2015-08-31 21:02:38 +02:00
|
|
|
|
2019-06-01 19:57:44 +02:00
|
|
|
if [ $f_res -eq 1 ]; then
|
|
|
|
pushd $CURRENT_BUILD_PROJECT_NAME &>/dev/null
|
2015-08-31 21:02:38 +02:00
|
|
|
|
2019-06-01 19:57:44 +02:00
|
|
|
mkdir build
|
|
|
|
pushd build &>/dev/null
|
2015-08-31 21:02:38 +02:00
|
|
|
|
2019-06-01 19:57:44 +02:00
|
|
|
$CMAKE .. \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DLLVM_TARGETS_TO_BUILD="X86;ARM;AArch64" \
|
|
|
|
-DLLVM_ENABLE_ASSERTIONS=Off
|
2015-08-31 21:02:38 +02:00
|
|
|
|
2019-06-01 19:57:44 +02:00
|
|
|
$MAKE -f tools/dsymutil/Makefile -j$JOBS
|
|
|
|
cp bin/llvm-dsymutil $OSXCROSS_TARGET_DIR/bin/osxcross-llvm-dsymutil
|
|
|
|
echo "installed llvm-dsymutil to $OSXCROSS_TARGET_DIR/bin/osxcross-llvm-dsymutil"
|
2015-08-31 21:02:38 +02:00
|
|
|
|
2019-06-01 19:57:44 +02:00
|
|
|
build_success
|
|
|
|
fi
|