forked from mirrors/gecko-dev
We leave the following ones unchanged: - geckodriver because the results are used to releases on github. - sixgill because the script that creates it is not in-tree. - *-dist-toolchain because sccache is not expecting a .tar.zst. We use native tar support in most cases, except for toolchain scripts also used on Windows, for which we use our zstdpy script. Differential Revision: https://phabricator.services.mozilla.com/D124733
29 lines
578 B
Bash
Executable file
29 lines
578 B
Bash
Executable file
#!/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
|
|
|
|
INJECTOR=libbreakpadinjector.so
|
|
|
|
TOOLCHAINS="binutils 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
|