Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mozilla's clang on amd64 #22

Open
wants to merge 1 commit into
base: nightly
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 8 additions & 3 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,20 +137,25 @@ parts:
build-packages:
- libtinfo5
- wget
- zstd
build-environment:
- LLVM_RELEASE: "14.0.0"
- LLVM_RELEASE: "15.0.6"
- MOZLLVM: "16"
override-pull: |
ROOT=https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_RELEASE/clang+llvm-$LLVM_RELEASE-
COMPRESSION=xz
if [ $SNAPCRAFT_TARGET_ARCH = "amd64" ]; then
SUFFIX=x86_64-linux-gnu-ubuntu-18.04.tar.xz
ROOT=https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.cache.level-3.toolchains.v3.linux64-clang-$MOZLLVM.latest/artifacts/public%2Fbuild%2Fclang.tar.zst
SUFFIX=
COMPRESSION=zst
elif [ $SNAPCRAFT_TARGET_ARCH = "armhf" ]; then
SUFFIX=armv7a-linux-gnueabihf.tar.xz
elif [ $SNAPCRAFT_TARGET_ARCH = "arm64" ]; then
SUFFIX=aarch64-linux-gnu.tar.xz
fi
mkdir -p $SNAPCRAFT_STAGE/usr
cd $SNAPCRAFT_STAGE/usr
wget -O - $ROOT$SUFFIX | tar -x --xz --strip-components=1
wget -O - $ROOT$SUFFIX | tar -x --$COMPRESSION --strip-components=1
override-prime: ''

dump-syms:
Expand Down