forked from mirrors/gecko-dev
Now that docker images have been upgraded to Debian buster, we can install a native zstd binary and use tar's native support rather than relying on piping the output of tar to a python script that uses the python-zstandard module. At least we can do that for toolchain tasks that run on such docker images, which also means we can't on Mac and Windows. Differential Revision: https://phabricator.services.mozilla.com/D112894
18 lines
655 B
Bash
Executable file
18 lines
655 B
Bash
Executable file
#!/bin/bash
|
|
set -x -e -v
|
|
|
|
# This script is to repack a linux clang with Windows clang-cl.exe and compiler runtime.
|
|
|
|
cd $MOZ_FETCHES_DIR
|
|
|
|
# We already have the Linux clang extracted in $MOZ_FETCHES_DIR/clang by fetch-content
|
|
# We have a non-extracted clang-cl/clang.tar.zst for Windows clang-cl that we need to extract
|
|
# files from.
|
|
|
|
$GECKO_PATH/taskcluster/scripts/misc/zstdpy -d clang-cl/clang.tar.zst | tar -x --wildcards clang/lib/clang/*/lib/windows clang/bin/clang-cl.exe clang/bin/llvm-symbolizer.exe
|
|
chmod +x clang/bin/clang-cl.exe
|
|
tar caf clang.tar.zst clang
|
|
|
|
# Put a tarball in the artifacts dir
|
|
mkdir -p $UPLOAD_DIR
|
|
cp clang.tar.zst $UPLOAD_DIR
|