mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 13:48:23 +02:00
Last time it was updated is bug 1436208, and the crashes we patched it for back then has been fixed upstream a few months later. For some reason, they renamed the executable from llvm-dsymutil to dsymutil. Differential Revision: https://phabricator.services.mozilla.com/D4741 --HG-- extra : moz-landing-system : lando
36 lines
725 B
Bash
Executable file
36 lines
725 B
Bash
Executable file
#!/bin/bash
|
|
set -x -e -v
|
|
|
|
# This script is for building clang for Linux.
|
|
|
|
WORKSPACE=$HOME/workspace
|
|
HOME_DIR=$WORKSPACE/build
|
|
UPLOAD_DIR=$HOME/artifacts
|
|
|
|
cd $HOME_DIR/src
|
|
|
|
. taskcluster/scripts/misc/tooltool-download.sh
|
|
|
|
git clone -n https://github.com/llvm-mirror/llvm
|
|
|
|
cd llvm
|
|
git checkout 9df0977d9409b093156ebbd8e1ac99bc32b9eb39
|
|
|
|
mkdir build
|
|
cd build
|
|
|
|
cmake \
|
|
-GNinja \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DLLVM_TARGETS_TO_BUILD=X86 \
|
|
-DCMAKE_C_COMPILER=$HOME_DIR/src/gcc/bin/gcc \
|
|
..
|
|
|
|
export LD_LIBRARY_PATH=$HOME_DIR/src/gcc/lib64
|
|
|
|
ninja dsymutil llvm-symbolizer
|
|
|
|
tar --xform='s,^,llvm-dsymutil/,' -Jcf llvm-dsymutil.tar.xz bin/dsymutil bin/llvm-symbolizer
|
|
|
|
mkdir -p $UPLOAD_DIR
|
|
cp llvm-dsymutil.tar.xz $UPLOAD_DIR
|