summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/build-llvm-dsymutil.sh
blob: aeafb6acf28b2e838b84045be0470371c01a3ecc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
set -x -e -v

# This script is for building clang for Linux.

cd $GECKO_PATH

cd $MOZ_FETCHES_DIR/llvm-project/llvm

mkdir build
cd build

cmake \
  -GNinja \
  -DCMAKE_BUILD_TYPE=Release \
  -DLLVM_TARGETS_TO_BUILD="X86;AArch64" \
  -DCMAKE_C_COMPILER=$MOZ_FETCHES_DIR/gcc/bin/gcc \
  ..

export LD_LIBRARY_PATH=$MOZ_FETCHES_DIR/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