Use clang 15
This commit is contained in:
parent
16e76e87b7
commit
d88d6187ac
2
.github/workflows/platform_natives.yaml
vendored
2
.github/workflows/platform_natives.yaml
vendored
@ -129,7 +129,7 @@ jobs:
|
||||
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-14 lld-14 libc++-14-dev libc++abi-14-dev libgcc-11-dev libunwind-14-dev libclang-common-14-dev ccache maven
|
||||
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
|
||||
version: 1.0
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.3
|
||||
|
@ -8,8 +8,8 @@ rm -rf implementations/tdlight/td_tools_build implementations/tdlight/build api/
|
||||
mkdir -p implementations/tdlight/build implementations/tdlight/build/td_bin/bin implementations/tdlight/td_tools_build/java/it/tdlight/jni api/src/main/java-legacy/it/tdlight/jni api/src/main/java-sealed/it/tdlight/jni natives/src/main/java/it/tdlight/jni natives/build natives/tdjni_bin natives/tdjni_docs
|
||||
|
||||
# machine-specific flags
|
||||
HOST_CMAKE_C_COMPILER="/usr/bin/clang-14"
|
||||
HOST_CMAKE_CXX_COMPILER="/usr/bin/clang++-14"
|
||||
HOST_CMAKE_C_COMPILER="/usr/bin/clang-15"
|
||||
HOST_CMAKE_CXX_COMPILER="/usr/bin/clang++-15"
|
||||
HOST_CMAKE_C_FLAGS="-fuse-ld=lld"
|
||||
HOST_CMAKE_CXX_FLAGS="${HOST_CMAKE_C_FLAGS} -stdlib=libc++"
|
||||
HOST_CMAKE_EXE_LINKER_FLAGS="-lc++ -lc++abi -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind"
|
||||
|
@ -7,8 +7,8 @@ rm -rf implementations/tdlight/td_tools_build implementations/tdlight/build api/
|
||||
mkdir -p implementations/tdlight/build implementations/tdlight/build/td_bin/bin implementations/tdlight/td_tools_build/java/it/tdlight/jni api/src/main/java-legacy/it/tdlight/jni api/src/main/java-sealed/it/tdlight/jni natives/src/main/java/it/tdlight/jni natives/build natives/tdjni_bin natives/tdjni_docs
|
||||
|
||||
# machine-specific flags
|
||||
HOST_CMAKE_C_COMPILER="/usr/bin/clang-14"
|
||||
HOST_CMAKE_CXX_COMPILER="/usr/bin/clang++-14"
|
||||
HOST_CMAKE_C_COMPILER="/usr/bin/clang-15"
|
||||
HOST_CMAKE_CXX_COMPILER="/usr/bin/clang++-15"
|
||||
HOST_CMAKE_C_FLAGS="-fuse-ld=lld"
|
||||
HOST_CMAKE_CXX_FLAGS="${HOST_CMAKE_C_FLAGS} -stdlib=libc++"
|
||||
HOST_CMAKE_EXE_LINKER_FLAGS="-lc++ -lc++abi -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind"
|
||||
|
@ -8,8 +8,8 @@ rm -rf implementations/tdlight/td_tools_build implementations/tdlight/build api/
|
||||
mkdir -p implementations/tdlight/build implementations/tdlight/build/td_bin/bin implementations/tdlight/td_tools_build/java/it/tdlight/jni api/src/main/java-legacy/it/tdlight/jni api/src/main/java-sealed/it/tdlight/jni natives/src/main/java/it/tdlight/jni natives/build natives/tdjni_bin natives/tdjni_docs
|
||||
|
||||
# machine-specific flags
|
||||
HOST_CMAKE_C_COMPILER="/usr/bin/clang-14"
|
||||
HOST_CMAKE_CXX_COMPILER="/usr/bin/clang++-14"
|
||||
HOST_CMAKE_C_COMPILER="/usr/bin/clang-15"
|
||||
HOST_CMAKE_CXX_COMPILER="/usr/bin/clang++-15"
|
||||
HOST_CMAKE_C_FLAGS="-fuse-ld=lld"
|
||||
HOST_CMAKE_CXX_FLAGS="${HOST_CMAKE_C_FLAGS} -stdlib=libc++"
|
||||
HOST_CMAKE_EXE_LINKER_FLAGS="-lc++ -lc++abi -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind"
|
||||
|
@ -8,8 +8,8 @@ rm -rf implementations/tdlight/td_tools_build implementations/tdlight/build api/
|
||||
mkdir -p implementations/tdlight/build implementations/tdlight/build/td_bin/bin implementations/tdlight/td_tools_build/java/it/tdlight/jni api/src/main/java-legacy/it/tdlight/jni api/src/main/java-sealed/it/tdlight/jni natives/src/main/java/it/tdlight/jni natives/build natives/tdjni_bin natives/tdjni_docs
|
||||
|
||||
# machine-specific flags
|
||||
HOST_CMAKE_C_COMPILER="/usr/bin/clang-14"
|
||||
HOST_CMAKE_CXX_COMPILER="/usr/bin/clang++-14"
|
||||
HOST_CMAKE_C_COMPILER="/usr/bin/clang-15"
|
||||
HOST_CMAKE_CXX_COMPILER="/usr/bin/clang++-15"
|
||||
HOST_CMAKE_C_FLAGS="-fuse-ld=lld"
|
||||
HOST_CMAKE_CXX_FLAGS="${HOST_CMAKE_C_FLAGS} -stdlib=libc++"
|
||||
HOST_CMAKE_EXE_LINKER_FLAGS="-lc++ -lc++abi -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind"
|
||||
|
@ -8,8 +8,8 @@ rm -rf implementations/tdlight/td_tools_build implementations/tdlight/build api/
|
||||
mkdir -p implementations/tdlight/build implementations/tdlight/build/td_bin/bin implementations/tdlight/td_tools_build/java/it/tdlight/jni api/src/main/java-legacy/it/tdlight/jni api/src/main/java-sealed/it/tdlight/jni natives/src/main/java/it/tdlight/jni natives/build natives/tdjni_bin natives/tdjni_docs
|
||||
|
||||
# machine-specific flags
|
||||
HOST_CMAKE_C_COMPILER="/usr/bin/clang-14"
|
||||
HOST_CMAKE_CXX_COMPILER="/usr/bin/clang++-14"
|
||||
HOST_CMAKE_C_COMPILER="/usr/bin/clang-15"
|
||||
HOST_CMAKE_CXX_COMPILER="/usr/bin/clang++-15"
|
||||
HOST_CMAKE_C_FLAGS="-fuse-ld=lld"
|
||||
HOST_CMAKE_CXX_FLAGS="${HOST_CMAKE_C_FLAGS} -stdlib=libc++"
|
||||
HOST_CMAKE_EXE_LINKER_FLAGS="-lc++ -lc++abi -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind"
|
||||
|
@ -8,8 +8,8 @@ rm -rf implementations/tdlight/td_tools_build implementations/tdlight/build api/
|
||||
mkdir -p implementations/tdlight/build implementations/tdlight/build/td_bin/bin implementations/tdlight/td_tools_build/java/it/tdlight/jni api/src/main/java-legacy/it/tdlight/jni api/src/main/java-sealed/it/tdlight/jni natives/src/main/java/it/tdlight/jni natives/build natives/tdjni_bin natives/tdjni_docs
|
||||
|
||||
# machine-specific flags
|
||||
HOST_CMAKE_C_COMPILER="/usr/bin/clang-14"
|
||||
HOST_CMAKE_CXX_COMPILER="/usr/bin/clang++-14"
|
||||
HOST_CMAKE_C_COMPILER="/usr/bin/clang-15"
|
||||
HOST_CMAKE_CXX_COMPILER="/usr/bin/clang++-15"
|
||||
HOST_CMAKE_C_FLAGS="-fuse-ld=lld"
|
||||
HOST_CMAKE_CXX_FLAGS="${HOST_CMAKE_C_FLAGS} -stdlib=libc++"
|
||||
HOST_CMAKE_EXE_LINKER_FLAGS="-lc++ -lc++abi -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind"
|
||||
|
@ -8,8 +8,8 @@ rm -rf implementations/tdlight/td_tools_build implementations/tdlight/build api/
|
||||
mkdir -p implementations/tdlight/build implementations/tdlight/build/td_bin/bin implementations/tdlight/td_tools_build/java/it/tdlight/jni api/src/main/java-legacy/it/tdlight/jni api/src/main/java-sealed/it/tdlight/jni natives/src/main/java/it/tdlight/jni natives/build natives/tdjni_bin natives/tdjni_docs
|
||||
|
||||
# machine-specific flags
|
||||
HOST_CMAKE_C_COMPILER="/usr/bin/clang-14"
|
||||
HOST_CMAKE_CXX_COMPILER="/usr/bin/clang++-14"
|
||||
HOST_CMAKE_C_COMPILER="/usr/bin/clang-15"
|
||||
HOST_CMAKE_CXX_COMPILER="/usr/bin/clang++-15"
|
||||
HOST_CMAKE_C_FLAGS="-fuse-ld=lld"
|
||||
HOST_CMAKE_CXX_FLAGS="${HOST_CMAKE_C_FLAGS} -stdlib=libc++"
|
||||
HOST_CMAKE_EXE_LINKER_FLAGS="-lc++ -lc++abi -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind"
|
||||
|
@ -9,17 +9,17 @@ sed 's/deb http/deb \[arch=amd64,i386\] http/' -i /etc/apt/sources.list
|
||||
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:i386 libc++abi-14-dev:i386 libc++1-14:i386 libc++abi1-14:i386 libunwind-14-dev:i386 libunwind-14:i386
|
||||
apt-get --assume-yes autoremove "libc++-15-dev:*" "libc++abi-15-dev:*" "libc++1-15:*" "libc++abi1-15:*" "libunwind-15-dev:*" "libunwind-15:*" || true
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-15-dev:i386 libc++abi-15-dev:i386 libc++1-15:i386 libc++abi1-15:i386 libunwind-15-dev:i386 libunwind-15:i386
|
||||
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/llvm-15/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-14-dev libunwind-14
|
||||
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
|
||||
# End libc++ packages bugfix
|
||||
|
||||
# Add i386 common files
|
||||
apt-get download libclang-common-14-dev:i386
|
||||
dpkg-deb -xv libclang-common-14-dev_*_i386.deb /
|
||||
apt-get download libclang-common-15-dev:i386
|
||||
dpkg-deb -xv libclang-common-15-dev_*_i386.deb /
|
||||
|
||||
|
||||
# Install dependencies
|
||||
|
@ -13,17 +13,17 @@ echo "deb [arch=arm64,armhf,ppc64el,riscv64,s390x] http://ports.ubuntu.com/ $(ls
|
||||
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:arm64 libc++abi-14-dev:arm64 libc++1-14:arm64 libc++abi1-14:arm64 libunwind-14-dev:arm64 libunwind-14:arm64
|
||||
apt-get --assume-yes autoremove "libc++-15-dev:*" "libc++abi-15-dev:*" "libc++1-15:*" "libc++abi1-15:*" "libunwind-15-dev:*" "libunwind-15:*" || true
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-15-dev:arm64 libc++abi-15-dev:arm64 libc++1-15:arm64 libc++abi1-15:arm64 libunwind-15-dev:arm64 libunwind-15:arm64
|
||||
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/llvm-15/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-14-dev libunwind-14
|
||||
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
|
||||
# End libc++ packages bugfix
|
||||
|
||||
# Add arm64 common files
|
||||
apt-get download libclang-common-14-dev:arm64
|
||||
dpkg-deb -xv libclang-common-14-dev_*_arm64.deb /
|
||||
apt-get download libclang-common-15-dev:arm64
|
||||
dpkg-deb -xv libclang-common-15-dev_*_arm64.deb /
|
||||
|
||||
|
||||
# Install dependencies
|
||||
|
@ -13,17 +13,17 @@ echo "deb [arch=arm64,armhf,ppc64el,riscv64,s390x] http://ports.ubuntu.com/ $(ls
|
||||
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-14:armhf libunwind-14-dev:armhf libunwind-14:armhf
|
||||
apt-get --assume-yes autoremove "libc++-15-dev:*" "libc++abi-15-dev:*" "libc++1-15:*" "libc++abi1-15:*" "libunwind-15-dev:*" "libunwind-15:*" || true
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-15-dev:armhf libc++abi-15-dev:armhf libc++1-15:armhf libc++abi1-15:armhf libunwind-15-dev:armhf libunwind-15:armhf
|
||||
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/llvm-15/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-14-dev libunwind-14
|
||||
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
|
||||
# End libc++ packages bugfix
|
||||
|
||||
# Add armhf common files
|
||||
apt-get download libclang-common-14-dev:armhf
|
||||
dpkg-deb -xv libclang-common-14-dev_*_armhf.deb /
|
||||
apt-get download libclang-common-15-dev:armhf
|
||||
dpkg-deb -xv libclang-common-15-dev_*_armhf.deb /
|
||||
|
||||
|
||||
# Install dependencies
|
||||
|
@ -13,17 +13,17 @@ echo "deb [arch=arm64,armhf,ppc64el,riscv64,s390x] http://ports.ubuntu.com/ $(ls
|
||||
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:ppc64el libc++abi-14-dev:ppc64el libc++1-14:ppc64el libc++abi1-14:ppc64el libunwind-14-dev:ppc64el libunwind-14:ppc64el
|
||||
apt-get --assume-yes autoremove "libc++-15-dev:*" "libc++abi-15-dev:*" "libc++1-15:*" "libc++abi1-15:*" "libunwind-15-dev:*" "libunwind-15:*" || true
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-15-dev:ppc64el libc++abi-15-dev:ppc64el libc++1-15:ppc64el libc++abi1-15:ppc64el libunwind-15-dev:ppc64el libunwind-15:ppc64el
|
||||
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/llvm-15/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-14-dev libunwind-14
|
||||
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
|
||||
# End libc++ packages bugfix
|
||||
|
||||
# Add ppc64le common files
|
||||
apt-get download libclang-common-14-dev:ppc64el
|
||||
dpkg-deb -xv libclang-common-14-dev_*_ppc64el.deb /
|
||||
apt-get download libclang-common-15-dev:ppc64el
|
||||
dpkg-deb -xv libclang-common-15-dev_*_ppc64el.deb /
|
||||
|
||||
|
||||
# Install dependencies
|
||||
|
@ -13,17 +13,17 @@ echo "deb [arch=arm64,armhf,ppc64el,riscv64,s390x] http://ports.ubuntu.com/ $(ls
|
||||
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:riscv64 libc++abi-14-dev:riscv64 libc++1-14:riscv64 libc++abi1-14:riscv64 libunwind-14-dev:riscv64 libunwind-14:riscv64
|
||||
apt-get --assume-yes autoremove "libc++-15-dev:*" "libc++abi-15-dev:*" "libc++1-15:*" "libc++abi1-15:*" "libunwind-15-dev:*" "libunwind-15:*" || true
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-15-dev:riscv64 libc++abi-15-dev:riscv64 libc++1-15:riscv64 libc++abi1-15:riscv64 libunwind-15-dev:riscv64 libunwind-15:riscv64
|
||||
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/llvm-15/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-14-dev libunwind-14
|
||||
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
|
||||
# End libc++ packages bugfix
|
||||
|
||||
# Add riscv64 common files
|
||||
apt-get download libclang-common-14-dev:riscv64
|
||||
dpkg-deb -xv libclang-common-14-dev_*_riscv64.deb /
|
||||
apt-get download libclang-common-15-dev:riscv64
|
||||
dpkg-deb -xv libclang-common-15-dev_*_riscv64.deb /
|
||||
|
||||
|
||||
# Install dependencies
|
||||
|
@ -13,17 +13,17 @@ echo "deb [arch=arm64,armhf,ppc64el,riscv64,s390x] http://ports.ubuntu.com/ $(ls
|
||||
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:s390x libc++abi-14-dev:s390x libc++1-14:s390x libc++abi1-14:s390x libunwind-14-dev:s390x libunwind-14:s390x
|
||||
apt-get --assume-yes autoremove "libc++-15-dev:*" "libc++abi-15-dev:*" "libc++1-15:*" "libc++abi1-15:*" "libunwind-15-dev:*" "libunwind-15:*" || true
|
||||
apt-get --assume-yes -o Dpkg::Options::="--force-overwrite" install libc++-15-dev:s390x libc++abi-15-dev:s390x libc++1-15:s390x libc++abi1-15:s390x libunwind-15-dev:s390x libunwind-15:s390x
|
||||
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/llvm-15/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-14-dev libunwind-14
|
||||
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
|
||||
# End libc++ packages bugfix
|
||||
|
||||
# Add s390x common files
|
||||
apt-get download libclang-common-14-dev:s390x
|
||||
dpkg-deb -xv libclang-common-14-dev_*_s390x.deb /
|
||||
apt-get download libclang-common-15-dev:s390x
|
||||
dpkg-deb -xv libclang-common-15-dev_*_s390x.deb /
|
||||
|
||||
|
||||
# Install dependencies
|
||||
|
2
.github/workflows/tdapi_file.yaml
vendored
2
.github/workflows/tdapi_file.yaml
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-14 libc++-14-dev libc++abi-14-dev libgcc-11-dev libunwind-14-dev libclang-common-14-dev ccache maven
|
||||
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
|
||||
version: 1.0
|
||||
- name: Install SSH key
|
||||
uses: shimataro/ssh-key-action@v2
|
||||
|
@ -8,11 +8,11 @@ if(EXISTS "/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-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)
|
||||
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)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
@ -8,11 +8,11 @@ if(EXISTS "/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-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)
|
||||
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)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
@ -8,11 +8,11 @@ if(EXISTS "/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-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)
|
||||
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)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
@ -8,11 +8,11 @@ if(EXISTS "/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-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)
|
||||
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)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
@ -8,11 +8,11 @@ if(EXISTS "/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-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)
|
||||
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)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
@ -8,11 +8,11 @@ if(EXISTS "/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-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)
|
||||
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)
|
||||
else()
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
|
Loading…
Reference in New Issue
Block a user