Update Linux build instructions to use Clang-18 with libc++ and latest TDLib #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:clang-18,libc++-18-dev, andlibc++abi-18-devpackagesCXXFLAGS="-stdlib=libc++" CC=/usr/bin/clang-18 CXX=/usr/bin/clang++-18TDLib Version: Removed the pinned
v1.6.0checkout to use the latest TDLib version, ensuring access to newest features and bug fixes.Source Processing: Added proper TDLib source preparation steps:
php SplitSource.phpbefore building to prepare the source treephp SplitSource.php --undoafter building to clean upPackage Updates: Changed
phptophp-clifor more explicit dependency management.Build Process
The updated script now follows the recommended TDLib build process:
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.