Update clang
This commit is contained in:
parent
104884b966
commit
0cad5f9e8a
8
.github/workflows/platform_natives.yaml
vendored
8
.github/workflows/platform_natives.yaml
vendored
@ -116,12 +116,12 @@ jobs:
|
||||
run: |
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
sudo apt-get --assume-yes update
|
||||
sudo apt-get --assume-yes install make git zlib1g-dev libssl-dev gperf php-cli cmake default-jdk clang-10 lld-10 libc++-10-dev libc++abi-10-dev libgcc-9-dev libunwind-dev libclang-common-10-dev ccache maven
|
||||
sudo apt-get --assume-yes install make git zlib1g-dev libssl-dev gperf php-cli cmake default-jdk clang-12 lld-12 libc++-12-dev libc++abi-12-dev libgcc-9-dev libunwind-dev libclang-common-12-dev ccache maven
|
||||
# - name: Install ubuntu 20.04 dependencies (cached)
|
||||
# if: matrix.os == 'ubuntu-20.04'
|
||||
# uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
# with:
|
||||
# packages: make git zlib1g-dev libssl-dev gperf php-cli cmake default-jdk clang-10 lld-10 libc++-10-dev libc++abi-10-dev libgcc-9-dev libunwind-dev libclang-common-10-dev ccache maven
|
||||
# packages: make git zlib1g-dev libssl-dev gperf php-cli cmake default-jdk clang-12 lld-12 libc++-12-dev libc++abi-12-dev libgcc-9-dev libunwind-dev libclang-common-12-dev ccache maven
|
||||
# version: 1.0
|
||||
- name: Install ubuntu 22.04 dependencies
|
||||
if: matrix.os == 'ubuntu-22.04'
|
||||
@ -129,12 +129,12 @@ jobs:
|
||||
run: |
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
sudo apt-get --assume-yes update
|
||||
sudo apt-get --assume-yes install make git zlib1g-dev libssl-dev gperf php-cli cmake default-jdk clang-15 lld-15 libc++-15-dev libc++abi-15-dev libgcc-11-dev libunwind-15-dev libclang-common-15-dev ccache maven
|
||||
sudo apt-get --assume-yes install make git zlib1g-dev libssl-dev gperf php-cli cmake default-jdk clang-14 lld-14 libc++-14-dev libc++abi-14-dev libgcc-11-dev libunwind-14-dev libclang-common-14-dev ccache maven
|
||||
# - name: Install ubuntu 22.04 dependencies (cached)
|
||||
# if: matrix.os == 'ubuntu-22.04'
|
||||
# uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
# with:
|
||||
# packages: make git zlib1g-dev libssl-dev gperf php-cli cmake default-jdk clang-15 lld-15 libc++-15-dev libc++abi-15-dev libgcc-11-dev libunwind-15-dev libclang-common-15-dev ccache maven
|
||||
# packages: make git zlib1g-dev libssl-dev gperf php-cli cmake default-jdk clang-14 lld-14 libc++-14-dev libc++abi-14-dev libgcc-11-dev libunwind-14-dev libclang-common-14-dev ccache maven
|
||||
# version: 1.0
|
||||
- name: Install custom dependencies
|
||||
shell: bash
|
||||
|
@ -14,12 +14,12 @@ apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-14-de
|
||||
cp --remove-destination \
|
||||
/usr/lib/llvm-14/lib/{libc++abi.so,libc++abi.so.1.0,libc++.so,libc++.so.1.0,libunwind.so.1.0} \
|
||||
/usr/lib/aarch64-linux-gnu/ || true
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-15-dev libunwind-15
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-14-dev libunwind-14
|
||||
# End libc++ packages bugfix
|
||||
|
||||
# Add i386 common files
|
||||
apt-get download libclang-common-15-dev:i386
|
||||
dpkg-deb -xv libclang-common-15-dev_*_i386.deb /
|
||||
apt-get download libclang-common-14-dev:i386
|
||||
dpkg-deb -xv libclang-common-14-dev_*_i386.deb /
|
||||
|
||||
|
||||
# Install dependencies
|
||||
|
@ -14,16 +14,16 @@ apt-get --assume-yes update
|
||||
|
||||
# Install and bypass a bug in the cross-platform libc++ packages
|
||||
apt-get --assume-yes autoremove "libc++-14-dev:*" "libc++abi-14-dev:*" "libc++1-14:*" "libc++abi1-14:*" "libunwind-14-dev:*" "libunwind-14:*" || true
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-14-dev:armhf libc++abi-14-dev:armhf libc++1-14:armhf libc++abi1-15:armhf libunwind-15-dev:armhf libunwind-15:armhf
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-14-dev:armhf libc++abi-14-dev:armhf libc++1-14:armhf libc++abi1-14:armhf libunwind-14-dev:armhf libunwind-14:armhf
|
||||
cp --remove-destination \
|
||||
/usr/lib/llvm-15/lib/{libc++abi.so,libc++abi.so.1.0,libc++.so,libc++.so.1.0,libunwind.so.1.0} \
|
||||
/usr/lib/llvm-14/lib/{libc++abi.so,libc++abi.so.1.0,libc++.so,libc++.so.1.0,libunwind.so.1.0} \
|
||||
/usr/lib/aarch64-linux-gnu/ || true
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-15 libc++-15-dev libc++abi-15-dev libc++1-15 libc++abi1-15 libunwind-15-dev libunwind-15
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-14-dev libunwind-14
|
||||
# End libc++ packages bugfix
|
||||
|
||||
# Add armhf common files
|
||||
apt-get download libclang-common-15-dev:armhf
|
||||
dpkg-deb -xv libclang-common-15-dev_*_armhf.deb /
|
||||
apt-get download libclang-common-14-dev:armhf
|
||||
dpkg-deb -xv libclang-common-14-dev_*_armhf.deb /
|
||||
|
||||
|
||||
# Install dependencies
|
||||
|
@ -18,12 +18,12 @@ apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-14-de
|
||||
cp --remove-destination \
|
||||
/usr/lib/llvm-14/lib/{libc++abi.so,libc++abi.so.1.0,libc++.so,libc++.so.1.0,libunwind.so.1.0} \
|
||||
/usr/lib/aarch64-linux-gnu/ || true
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-15 libunwind-15-dev libunwind-15
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-14-dev libunwind-14
|
||||
# End libc++ packages bugfix
|
||||
|
||||
# Add ppc64le common files
|
||||
apt-get download libclang-common-15-dev:ppc64el
|
||||
dpkg-deb -xv libclang-common-15-dev_*_ppc64el.deb /
|
||||
apt-get download libclang-common-14-dev:ppc64el
|
||||
dpkg-deb -xv libclang-common-14-dev_*_ppc64el.deb /
|
||||
|
||||
|
||||
# Install dependencies
|
||||
|
@ -18,12 +18,12 @@ apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-14-de
|
||||
cp --remove-destination \
|
||||
/usr/lib/llvm-14/lib/{libc++abi.so,libc++abi.so.1.0,libc++.so,libc++.so.1.0,libunwind.so.1.0} \
|
||||
/usr/lib/aarch64-linux-gnu/ || true
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-15-dev libunwind-15
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install clang-14 libc++-14-dev libc++abi-14-dev libc++1-14 libc++abi1-14 libunwind-14-dev libunwind-14
|
||||
# End libc++ packages bugfix
|
||||
|
||||
# Add riscv64 common files
|
||||
apt-get download libclang-common-15-dev:riscv64
|
||||
dpkg-deb -xv libclang-common-15-dev_*_riscv64.deb /
|
||||
apt-get download libclang-common-14-dev:riscv64
|
||||
dpkg-deb -xv libclang-common-14-dev_*_riscv64.deb /
|
||||
|
||||
|
||||
# Install dependencies
|
||||
|
2
.github/workflows/tdapi_file.yaml.off
vendored
2
.github/workflows/tdapi_file.yaml.off
vendored
@ -18,7 +18,7 @@ jobs:
|
||||
if: matrix.os == 'ubuntu-22.04'
|
||||
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
with:
|
||||
packages: sudo make git zlib1g-dev libssl-dev gperf php-cli cmake openjdk-17-jdk clang-15 libc++-15-dev libc++abi-15-dev libgcc-11-dev libunwind-15-dev libclang-common-15-dev ccache maven
|
||||
packages: sudo make git zlib1g-dev libssl-dev gperf php-cli cmake openjdk-17-jdk clang-14 libc++-14-dev libc++abi-14-dev libgcc-11-dev libunwind-14-dev libclang-common-14-dev ccache maven
|
||||
version: 1.0
|
||||
- name: Install SSH key
|
||||
uses: shimataro/ssh-key-action@v2
|
||||
|
@ -3,16 +3,16 @@ SET(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR aarch64)
|
||||
set(TARGET_TRIPLE aarch64-linux-gnu)
|
||||
|
||||
if(EXISTS "/usr/bin/clang-10")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-10)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-10)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-10)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-10" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-15")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-15)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-15)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-15)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-15" CACHE FILEPATH "" FORCE)
|
||||
if(EXISTS "/usr/bin/clang-12")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-12)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-12" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-14")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-14)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-14" CACHE FILEPATH "" FORCE)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
@ -3,16 +3,16 @@ SET(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR arm)
|
||||
set(TARGET_TRIPLE arm-linux-gnueabihf)
|
||||
|
||||
if(EXISTS "/usr/bin/clang-10")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-10)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-10)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-10)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-10" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-15")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-15)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-15)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-15)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-15" CACHE FILEPATH "" FORCE)
|
||||
if(EXISTS "/usr/bin/clang-12")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-12)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-12" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-14")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-14)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-14" CACHE FILEPATH "" FORCE)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
@ -3,16 +3,16 @@ SET(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR i386)
|
||||
set(TARGET_TRIPLE i386-linux-gnu)
|
||||
|
||||
if(EXISTS "/usr/bin/clang-10")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-10)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-10)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-10)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-10" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-15")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-15)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-15)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-15)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-15" CACHE FILEPATH "" FORCE)
|
||||
if(EXISTS "/usr/bin/clang-12")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-12)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-12" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-14")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-14)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-14" CACHE FILEPATH "" FORCE)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
@ -3,16 +3,16 @@ SET(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR powerpc64le)
|
||||
set(TARGET_TRIPLE powerpc64le-linux-gnu)
|
||||
|
||||
if(EXISTS "/usr/bin/clang-10")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-10)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-10)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-10)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-10" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-15")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-15)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-15)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-15)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-15" CACHE FILEPATH "" FORCE)
|
||||
if(EXISTS "/usr/bin/clang-12")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-12)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-12" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-14")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-14)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-14" CACHE FILEPATH "" FORCE)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
@ -3,16 +3,16 @@ SET(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR riscv64)
|
||||
set(TARGET_TRIPLE riscv64-linux-gnu)
|
||||
|
||||
if(EXISTS "/usr/bin/clang-10")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-10)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-10)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-10)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-10" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-15")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-15)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-15)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-15)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-15" CACHE FILEPATH "" FORCE)
|
||||
if(EXISTS "/usr/bin/clang-12")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-12)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-12)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-12" CACHE FILEPATH "" FORCE)
|
||||
elseif(EXISTS "/usr/bin/clang-14")
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++-14)
|
||||
set(CMAKE_ASM_COMPILER /usr/bin/clang-14)
|
||||
set(CMAKE_AR "/usr/bin/llvm-ar-14" CACHE FILEPATH "" FORCE)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
Loading…
Reference in New Issue
Block a user