From 2a738be5eafdebd4a3476ad0bd447c625fc931d8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 24 Aug 2025 08:04:03 +0000 Subject: [PATCH 1/2] Initial plan From fb083542496c7e312f5d805cec2fa7162d543209 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 24 Aug 2025 08:07:26 +0000 Subject: [PATCH 2/2] Update Linux build instructions with clang-18 and improved build steps Co-authored-by: Sammers21 <16746106+Sammers21@users.noreply.github.com> --- linux-ubuntu-18.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/linux-ubuntu-18.sh b/linux-ubuntu-18.sh index b8f29fd..e04b4bb 100755 --- a/linux-ubuntu-18.sh +++ b/linux-ubuntu-18.sh @@ -1,23 +1,23 @@ sudo apt-get update sudo apt-get upgrade -sudo apt-get install make git zlib1g-dev libssl-dev gperf php cmake default-jdk g++ +sudo apt-get install make git zlib1g-dev libssl-dev gperf php-cli cmake default-jdk clang-18 libc++-18-dev libc++abi-18-dev git clone https://github.com/tdlib/td.git cd td -git checkout v1.6.0 +php SplitSource.php rm -rf build mkdir build cd build -export CXXFLAGS="" -cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=../example/java/td -DTD_ENABLE_JNI=ON .. +CXXFLAGS="-stdlib=libc++" CC=/usr/bin/clang-18 CXX=/usr/bin/clang++-18 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=../example/java/td -DTD_ENABLE_JNI=ON .. cmake --build . --target install cd .. cd example/java rm -rf build mkdir build cd build -cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=../../../tdlib -DTd_DIR:PATH=$(readlink -e ../td/lib/cmake/Td) .. +CXXFLAGS="-stdlib=libc++" CC=/usr/bin/clang-18 CXX=/usr/bin/clang++-18 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=../../../tdlib -DTd_DIR:PATH=$(readlink -e ../td/lib/cmake/Td) .. cmake --build . --target install cd ../../.. +php SplitSource.php --undo cd .. ls -l td/tdlib export OS="ubuntu"