summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/build-llvm-dsymutil.sh
diff options
context:
space:
mode:
Diffstat (limited to 'taskcluster/scripts/misc/build-llvm-dsymutil.sh')
-rwxr-xr-xtaskcluster/scripts/misc/build-llvm-dsymutil.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/taskcluster/scripts/misc/build-llvm-dsymutil.sh b/taskcluster/scripts/misc/build-llvm-dsymutil.sh
new file mode 100755
index 0000000000..aeafb6acf2
--- /dev/null
+++ b/taskcluster/scripts/misc/build-llvm-dsymutil.sh
@@ -0,0 +1,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