From db26c014519431c27c9e23e445b6fe19dca338f8 Mon Sep 17 00:00:00 2001 From: ohfp <1813007-ohfp@users.noreply.gitlab.com> Date: Tue, 31 Mar 2020 09:53:45 +0200 Subject: use clang from repos for aarch64 --- binary_tarball/scripts/1_Install_Dependencies.sh | 21 ++++++++++----------- binary_tarball/scripts/3_Configure_Source_Code.sh | 21 +++++++++++++-------- 2 files changed, 23 insertions(+), 19 deletions(-) diff --git a/binary_tarball/scripts/1_Install_Dependencies.sh b/binary_tarball/scripts/1_Install_Dependencies.sh index 833b139..7f2c85a 100755 --- a/binary_tarball/scripts/1_Install_Dependencies.sh +++ b/binary_tarball/scripts/1_Install_Dependencies.sh @@ -49,14 +49,13 @@ printf "\nInstalling dependencies: $_DEPENDENCIES\n"; apt-get -qq update; apt-get -y -qq install $_DEPENDENCIES; -# Installs (non-ancient) clang -apt install -y software-properties-common apt-transport-https ca-certificates -apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main" -wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -apt-get update -apt-get -y install clang-9 libclang-9-dev - -# Installs (non-ancient) nodejs -# => use nodejs-mozilla instead -# curl -sL https://deb.nodesource.com/setup_13.x | bash - -# apt-get install -y nodejs +if [[ $CARCH == 'x86_64' ]];then + # Installs (non-ancient) clang + apt install -y software-properties-common apt-transport-https ca-certificates + apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main" + wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add + apt-get update + apt-get -y install clang-9 libclang-9-dev +else + apt-get -y install clang-8 libclang-8-dev +fi diff --git a/binary_tarball/scripts/3_Configure_Source_Code.sh b/binary_tarball/scripts/3_Configure_Source_Code.sh index df98c85..d75ee74 100755 --- a/binary_tarball/scripts/3_Configure_Source_Code.sh +++ b/binary_tarball/scripts/3_Configure_Source_Code.sh @@ -21,8 +21,6 @@ cat >${CI_PROJECT_DIR}/mozconfig <>${CI_PROJECT_DIR}/mozconfig <