blob: a6dd88e37a0f1acdb72dadbec1ac26a3336ec074 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/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 -c clang | $GECKO_PATH/taskcluster/scripts/misc/zstdpy > clang.tar.zst
# Put a tarball in the artifacts dir
mkdir -p $UPLOAD_DIR
cp clang.tar.zst $UPLOAD_DIR
|