Skip to content

Conversation

Copy link

Copilot AI commented Aug 24, 2025

This PR updates the Linux build script (linux-ubuntu-18.sh) to use modern build tooling and the latest version of TDLib, improving compatibility and performance.

Key Changes

Compiler Migration: Switched from GCC (g++) to Clang-18 with libc++ standard library for better C++ standards compliance and performance:

  • Added clang-18, libc++-18-dev, and libc++abi-18-dev packages
  • Updated both cmake invocations to use CXXFLAGS="-stdlib=libc++" CC=/usr/bin/clang-18 CXX=/usr/bin/clang++-18

TDLib Version: Removed the pinned v1.6.0 checkout to use the latest TDLib version, ensuring access to newest features and bug fixes.

Source Processing: Added proper TDLib source preparation steps:

  • php SplitSource.php before building to prepare the source tree
  • php SplitSource.php --undo after building to clean up

Package Updates: Changed php to php-cli for more explicit dependency management.

Build Process

The updated script now follows the recommended TDLib build process:

  1. Install modern build dependencies including Clang-18
  2. Clone latest TDLib source
  3. Prepare source with SplitSource.php
  4. Build TDLib with Clang-18 and libc++
  5. Build Java bindings with same toolchain
  6. Clean up source modifications

This ensures compatibility with the latest TDLib API changes and provides a more robust build using modern C++ tooling.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: Sammers21 <16746106+Sammers21@users.noreply.github.com>
Copilot AI changed the title [WIP] please update build instructions for linux: sudo apt-get update sudo apt-get upgrade 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 c... Update Linux build instructions to use Clang-18 with libc++ and latest TDLib Aug 24, 2025
Copilot finished work on behalf of Sammers21 August 24, 2025 08:08
Copilot AI requested a review from Sammers21 August 24, 2025 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants