summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/build-breakpad-injector.sh
blob: ecd53e13d1ca89c52d2269a649fe221859f3d686 (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
28
29
30
#!/bin/bash
set -x -e -v

# This script is for building libbreakpadinjector.so, currently for linux only

COMPRESS_EXT=zst

cd $GECKO_PATH

export MOZ_OBJDIR=obj-injector

echo ac_add_options --enable-project=tools/crashreporter/injector > .mozconfig
echo ac_add_options --enable-linker=lld >> .mozconfig

INJECTOR=libbreakpadinjector.so

TOOLCHAINS="rustc clang"

for t in $TOOLCHAINS; do
    PATH="$MOZ_FETCHES_DIR/$t/bin:$PATH"
done

./mach build -v

mkdir injector
cp $MOZ_OBJDIR/dist/bin/$INJECTOR injector/

tar -acf injector.tar.$COMPRESS_EXT injector/
mkdir -p $UPLOAD_DIR
cp injector.tar.$COMPRESS_EXT $UPLOAD_DIR