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
25 lines
487 B
Bash
Executable file
25 lines
487 B
Bash
Executable file
#!/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 \
|
|
..
|
|
|
|
ninja dsymutil llvm-symbolizer
|
|
|
|
tar --xform='s,^,llvm-dsymutil/,' -caf llvm-dsymutil.tar.zst bin/dsymutil bin/llvm-symbolizer
|
|
|
|
mkdir -p $UPLOAD_DIR
|
|
cp llvm-dsymutil.tar.zst $UPLOAD_DIR
|